Commit 5c8ed3bd authored by Mark Nauwelaerts's avatar Mark Nauwelaerts

audioresample: minor simplification

... which avoids crashing in the off-chance that structure == NULL.
parent d3d8d5c2
......@@ -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;
myfp = FALSE;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment