x264enc: Don't unref future state but the old one
Being silly will lead us nowhere.
This commit is contained in:
parent
55037ab411
commit
0243810e1e
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user