mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
audioresample: minor simplification
... which avoids crashing in the off-chance that structure == NULL.
This commit is contained in:
parent
d3d8d5c2cc
commit
5c8ed3bd47
1 changed files with 1 additions and 1 deletions
|
@ -473,7 +473,7 @@ gst_audio_resample_parse_caps (GstCaps * incaps,
|
||||||
|
|
||||||
structure = gst_caps_get_structure (incaps, 0);
|
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 = TRUE;
|
||||||
else
|
else
|
||||||
myfp = FALSE;
|
myfp = FALSE;
|
||||||
|
|
Loading…
Reference in a new issue