omxvideoenc: Use the correct video codec state when filling an input buffer

This commit is contained in:
Sebastian Dröge 2013-03-10 12:09:23 +01:00
parent 98cf9f6fe2
commit eac2078056

View file

@ -1324,8 +1324,7 @@ static gboolean
gst_omx_video_enc_fill_buffer (GstOMXVideoEnc * self, GstBuffer * inbuf,
GstOMXBuffer * outbuf)
{
GstVideoCodecState *state =
gst_video_encoder_get_output_state (GST_VIDEO_ENCODER (self));
GstVideoCodecState *state = gst_video_codec_state_ref (self->input_state);
GstVideoInfo *info = &state->info;
OMX_PARAM_PORTDEFINITIONTYPE *port_def = &self->enc_in_port->port_def;
gboolean ret = FALSE;