mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +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) {
|
if (ffmpegenc->opened) {
|
||||||
gst_ffmpeg_avcodec_close (ffmpegenc->context);
|
gst_ffmpeg_avcodec_close (ffmpegenc->context);
|
||||||
ffmpegenc->opened = FALSE;
|
ffmpegenc->opened = FALSE;
|
||||||
|
/* fixed src caps;
|
||||||
|
* so clear src caps for proper (re-)negotiation */
|
||||||
|
gst_pad_set_caps (ffmpegenc->srcpad, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* set defaults */
|
/* set defaults */
|
||||||
|
|
Loading…
Reference in a new issue