mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 22:16:22 +00:00
v4l2videoenc: Call stop on object before renegotiation
Otherwise renegotiation fails as we are still streaming. https://bugzilla.gnome.org/show_bug.cgi?id=791338
This commit is contained in:
parent
a46756bd56
commit
d90b6ec459
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue