videodecoder: Break instead of return if default negotiation on GAP events fails

Otherwise we're going to leak the event.
This commit is contained in:
Sebastian Dröge 2015-04-11 19:51:54 +02:00
parent d4f9ea8499
commit 6539d1da29

View file

@ -1224,7 +1224,8 @@ gst_video_decoder_sink_event_default (GstVideoDecoder * decoder,
GST_VIDEO_DECODER_STREAM_UNLOCK (decoder);
GST_ELEMENT_ERROR (decoder, STREAM, FORMAT, (NULL),
("Decoder output not negotiated before GAP event."));
return FALSE;
forward_immediate = TRUE;
break;
}
}
GST_VIDEO_DECODER_STREAM_UNLOCK (decoder);