summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Duponchelle <mathieu.duponchelle@epitech.eu>2013-09-05 22:56:48 +0200
committerSebastian Dröge <slomo@circular-chaos.org>2013-09-05 22:56:48 +0200
commit0243810e1e0d35fff1023d3f6c42967cc7aaff6e (patch)
treead0df5700826b40d828ea44227537e59e3b86663
parent55037ab411218786a7625e2d8827ae253f4b4909 (diff)
x264enc: Don't unref future state but the old one
Being silly will lead us nowhere.
-rw-r--r--ext/x264/gstx264enc.c2
1 files changed, 1 insertions, 1 deletions
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;