summaryrefslogtreecommitdiff
path: root/omx/gstomxvideodec.c
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2013-03-08 15:11:27 +0100
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2013-03-08 15:50:20 +0100
commitc014b1c9a3fbf3c6062debc58166ad77dae164db (patch)
tree902728e09c90df65d5c5a1814dbeeee0b227eed3 /omx/gstomxvideodec.c
parent716adfa5be1b7c5fa10d40863132d2254f49a7a8 (diff)
omx: Flush and stop srcpad when configuring new caps
Diffstat (limited to 'omx/gstomxvideodec.c')
-rw-r--r--omx/gstomxvideodec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/omx/gstomxvideodec.c b/omx/gstomxvideodec.c
index 0a23908..2009426 100644
--- a/omx/gstomxvideodec.c
+++ b/omx/gstomxvideodec.c
@@ -1982,6 +1982,8 @@ gst_omx_video_dec_set_format (GstVideoDecoder * decoder,
GST_DEBUG_OBJECT (self, "Need to disable and drain decoder");
gst_omx_video_dec_drain (self, FALSE);
+ gst_omx_port_set_flushing (self->dec_out_port, 5 * GST_SECOND, TRUE);
+ gst_pad_stop_task (GST_VIDEO_DECODER_SRC_PAD (decoder));
if (klass->cdata.hacks & GST_OMX_HACK_NO_COMPONENT_RECONFIGURE) {
GST_VIDEO_DECODER_STREAM_UNLOCK (self);