diff options
author | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2017-12-21 22:56:51 -0500 |
---|---|---|
committer | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2018-01-08 17:20:52 -0500 |
commit | d90b6ec45979fdd2b3fdd114d523d78d8395a2f1 (patch) | |
tree | 584aa3305c7b292543d8afdb255346dbbf8dae08 | |
parent | a46756bd566f7b8b2c78297680a657f5a39e0797 (diff) |
v4l2videoenc: Call stop on object before renegotiation
Otherwise renegotiation fails as we are still streaming.
https://bugzilla.gnome.org/show_bug.cgi?id=791338
-rw-r--r-- | sys/v4l2/gstv4l2videoenc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/v4l2/gstv4l2videoenc.c b/sys/v4l2/gstv4l2videoenc.c index 1783b860a..c9a8040f4 100644 --- a/sys/v4l2/gstv4l2videoenc.c +++ b/sys/v4l2/gstv4l2videoenc.c @@ -321,6 +321,9 @@ gst_v4l2_video_enc_set_format (GstVideoEncoder * encoder, if (gst_v4l2_video_enc_finish (encoder) != GST_FLOW_OK) return FALSE; + gst_v4l2_object_stop (self->v4l2output); + gst_v4l2_object_stop (self->v4l2capture); + gst_video_codec_state_unref (self->input_state); self->input_state = NULL; } |