mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
gstreamer: Fix reference leak of the input state if the caps are changing
Also remove misleading comment: reconfiguration was already handled by the following code.
This commit is contained in:
parent
9128978042
commit
13fa6d387d
1 changed files with 2 additions and 2 deletions
|
@ -721,8 +721,8 @@ gst_svtav1enc_set_format (GstVideoEncoder * encoder,
|
||||||
GstCaps *src_caps = NULL;
|
GstCaps *src_caps = NULL;
|
||||||
GST_DEBUG_OBJECT (svtav1enc, "set_format");
|
GST_DEBUG_OBJECT (svtav1enc, "set_format");
|
||||||
|
|
||||||
/* TODO: handle configuration changes while encoder is running
|
if (svtav1enc->state)
|
||||||
* and if there was already a state. */
|
gst_video_codec_state_unref (svtav1enc->state);
|
||||||
svtav1enc->state = gst_video_codec_state_ref (state);
|
svtav1enc->state = gst_video_codec_state_ref (state);
|
||||||
|
|
||||||
gst_svtav1enc_configure_svt (svtav1enc);
|
gst_svtav1enc_configure_svt (svtav1enc);
|
||||||
|
|
Loading…
Reference in a new issue