x264enc: Don't unref future state but the old one

Being silly will lead us nowhere.
This commit is contained in:
Mathieu Duponchelle 2013-09-05 22:56:48 +02:00 committed by Sebastian Dröge
parent 55037ab411
commit 0243810e1e

View file

@ -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;