mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
v4l2videodec: Prevent renegotiation
Renegotiation isn't supported, simply prevent it the way we do in v4l2src.
This commit is contained in:
parent
c4aaff5c92
commit
5c67ba7f88
1 changed files with 7 additions and 0 deletions
|
@ -283,6 +283,13 @@ gst_v4l2_video_dec_flush (GstVideoDecoder * decoder)
|
|||
static gboolean
|
||||
gst_v4l2_video_dec_negotiate (GstVideoDecoder * decoder)
|
||||
{
|
||||
GstV4l2VideoDec *self = GST_V4L2_VIDEO_DEC (decoder);
|
||||
|
||||
/* We don't allow renegotiation without carefull disabling the pool */
|
||||
if (self->v4l2capture->pool &&
|
||||
gst_buffer_pool_is_active (GST_BUFFER_POOL (self->v4l2capture->pool)))
|
||||
return TRUE;
|
||||
|
||||
return GST_VIDEO_DECODER_CLASS (parent_class)->negotiate (decoder);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue