mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
gstreamer: Fix double unref
The ownership of the caps is passed to `gst_video_encoder_set_output_state()`.
This commit is contained in:
parent
df064c6cc2
commit
dd1db338df
1 changed files with 0 additions and 1 deletions
|
@ -898,7 +898,6 @@ static gboolean gst_svtav1enc_set_format(GstVideoEncoder *encoder, GstVideoCodec
|
|||
src_caps = gst_static_pad_template_get_caps(&gst_svtav1enc_src_pad_template);
|
||||
output_state = gst_video_encoder_set_output_state(
|
||||
GST_VIDEO_ENCODER(encoder), src_caps, svtav1enc->state);
|
||||
gst_caps_unref(src_caps);
|
||||
gst_video_codec_state_unref(output_state);
|
||||
|
||||
GST_DEBUG_OBJECT(svtav1enc, "output caps: %" GST_PTR_FORMAT, svtav1enc->state->caps);
|
||||
|
|
Loading…
Reference in a new issue