From: Sebastian Dröge Date: Sun, 10 Mar 2013 11:09:23 +0000 (+0100) Subject: omxvideoenc: Use the correct video codec state when filling an input buffer X-Git-Tag: 1.19.3~501^2~632 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eac20780564ea7f3996790b810892d9bd3cd6dc4;p=platform%2Fupstream%2Fgstreamer.git omxvideoenc: Use the correct video codec state when filling an input buffer --- diff --git a/omx/gstomxvideoenc.c b/omx/gstomxvideoenc.c index b81c919..4ba27cb 100644 --- a/omx/gstomxvideoenc.c +++ b/omx/gstomxvideoenc.c @@ -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;