mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 02:01:12 +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;
|
||||
GST_DEBUG_OBJECT (svtav1enc, "set_format");
|
||||
|
||||
/* TODO: handle configuration changes while encoder is running
|
||||
* and if there was already a state. */
|
||||
if (svtav1enc->state)
|
||||
gst_video_codec_state_unref (svtav1enc->state);
|
||||
svtav1enc->state = gst_video_codec_state_ref (state);
|
||||
|
||||
gst_svtav1enc_configure_svt (svtav1enc);
|
||||
|
|
Loading…
Reference in a new issue