mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
ffmpegenc: ensure proper clean state prior to (re-)negotiation
Fixes #632691.
This commit is contained in:
parent
d82633c4e3
commit
e837ec505d
1 changed files with 3 additions and 0 deletions
|
@ -526,6 +526,9 @@ gst_ffmpegenc_setcaps (GstPad * pad, GstCaps * caps)
|
|||
if (ffmpegenc->opened) {
|
||||
gst_ffmpeg_avcodec_close (ffmpegenc->context);
|
||||
ffmpegenc->opened = FALSE;
|
||||
/* fixed src caps;
|
||||
* so clear src caps for proper (re-)negotiation */
|
||||
gst_pad_set_caps (ffmpegenc->srcpad, NULL);
|
||||
}
|
||||
|
||||
/* set defaults */
|
||||
|
|
Loading…
Reference in a new issue