mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
audiodecoder: avoid parsing caps event if it is not used
Saves some cpu
This commit is contained in:
parent
8cf8332b91
commit
95a56dbda7
1 changed files with 0 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue