audiodecoder: avoid parsing caps event if it is not used

Saves some cpu
This commit is contained in:
Thiago Santos 2014-01-13 20:47:02 -03:00
parent 8cf8332b91
commit 95a56dbda7

View 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);