summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/libde265/libde265-dec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/libde265/libde265-dec.c b/ext/libde265/libde265-dec.c
index 109edadba..1e014a8e2 100644
--- a/ext/libde265/libde265-dec.c
+++ b/ext/libde265/libde265-dec.c
@@ -519,6 +519,7 @@ _gst_libde265_image_available (GstVideoDecoder * decoder, int width, int height)
}
if (!gst_video_decoder_negotiate (decoder)) {
GST_ERROR_OBJECT (dec, "Failed to negotiate format");
+ gst_video_codec_state_unref (state);
return GST_FLOW_ERROR;
}
if (dec->output_state != NULL) {