From 5c8ed3bd47a9464de015a0b2b84ae077d0633ec1 Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Tue, 8 Feb 2011 14:02:20 +0100 Subject: [PATCH] audioresample: minor simplification ... which avoids crashing in the off-chance that structure == NULL. --- gst/audioresample/gstaudioresample.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/audioresample/gstaudioresample.c b/gst/audioresample/gstaudioresample.c index 90967c2671..92e38dd07f 100644 --- a/gst/audioresample/gstaudioresample.c +++ b/gst/audioresample/gstaudioresample.c @@ -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;