diff options
Diffstat (limited to 'omx/gstomxh264enc.c')
-rw-r--r-- | omx/gstomxh264enc.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/omx/gstomxh264enc.c b/omx/gstomxh264enc.c index d503648..3a22841 100644 --- a/omx/gstomxh264enc.c +++ b/omx/gstomxh264enc.c @@ -92,9 +92,12 @@ gst_omx_h264_enc_set_format (GstOMXVideoEnc * enc, GstOMXPort * port, OMX_ERRORTYPE err; const gchar *profile_string, *level_string; - gst_omx_port_get_port_definition (port, &port_def); + gst_omx_port_get_port_definition (GST_OMX_VIDEO_ENC (self)->enc_out_port, + &port_def); port_def.format.video.eCompressionFormat = OMX_VIDEO_CodingAVC; - err = gst_omx_port_update_port_definition (port, &port_def); + err = + gst_omx_port_update_port_definition (GST_OMX_VIDEO_ENC + (self)->enc_out_port, &port_def); if (err != OMX_ErrorNone) return FALSE; |