audioresample: minor simplification
... which avoids crashing in the off-chance that structure == NULL.
This commit is contained in:
parent
d3d8d5c2cc
commit
5c8ed3bd47
@ -473,7 +473,7 @@ gst_audio_resample_parse_caps (GstCaps * incaps,
|
||||
|
||||
structure = gst_caps_get_structure (incaps, 0);
|
||||
|
||||
if (g_str_equal (gst_structure_get_name (structure), "audio/x-raw-float"))
|
||||
if (gst_structure_has_name (structure, "audio/x-raw-float"))
|
||||
myfp = TRUE;
|
||||
else
|
||||
myfp = FALSE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user