From 0243810e1e0d35fff1023d3f6c42967cc7aaff6e Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Thu, 5 Sep 2013 22:56:48 +0200 Subject: x264enc: Don't unref future state but the old one Being silly will lead us nowhere. --- ext/x264/gstx264enc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/x264/gstx264enc.c b/ext/x264/gstx264enc.c index 29b4c21c..6d527a10 100644 --- a/ext/x264/gstx264enc.c +++ b/ext/x264/gstx264enc.c @@ -1676,7 +1676,7 @@ gst_x264_enc_set_format (GstVideoEncoder * video_enc, } if (encoder->input_state) - gst_video_codec_state_unref (state); + gst_video_codec_state_unref (encoder->input_state); encoder->input_state = gst_video_codec_state_ref (state); encoder->peer_profile = NULL; -- cgit v1.2.3