audioresample: minor simplification

... which avoids crashing in the off-chance that structure == NULL.
This commit is contained in:
Mark Nauwelaerts 2011-02-08 14:02:20 +01:00
parent d3d8d5c2cc
commit 5c8ed3bd47

View file

@ -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;