omxvideoenc: Store correct input state

This commit is contained in:
Sebastian Dröge 2013-03-10 12:05:50 +01:00
parent fb3b213b3e
commit 98cf9f6fe2

View file

@ -1275,7 +1275,7 @@ gst_omx_video_enc_set_format (GstVideoEncoder * encoder,
if (self->input_state)
gst_video_codec_state_unref (self->input_state);
self->input_state = gst_video_codec_state_ref (self->input_state);
self->input_state = gst_video_codec_state_ref (state);
/* Start the srcpad loop again */
GST_DEBUG_OBJECT (self, "Starting task again");