audiodecoder: avoid parsing caps event if it is not used
authorThiago Santos <ts.santos@sisa.samsung.com>
Mon, 13 Jan 2014 23:47:02 +0000 (20:47 -0300)
committerThiago Santos <ts.santos@sisa.samsung.com>
Tue, 14 Jan 2014 12:34:44 +0000 (09:34 -0300)
Saves some cpu

gst-libs/gst/audio/gstaudiodecoder.c

index 7bfa830..b2d0eb4 100644 (file)
@@ -1981,9 +1981,6 @@ gst_audio_decoder_sink_eventfunc (GstAudioDecoder * dec, GstEvent * event)
 
     case GST_EVENT_CAPS:
     {
-      GstCaps *caps;
-
-      gst_event_parse_caps (event, &caps);
       ret = TRUE;
       dec->priv->do_caps = TRUE;
       gst_event_unref (event);