summaryrefslogtreecommitdiff
path: root/omx/gstomxh264enc.c
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2013-03-01 12:23:54 +0100
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2013-03-01 12:24:09 +0100
commit0b348473fa139b90ba121e7e2c3456cdc3604433 (patch)
tree65b572f497447f9b355bd404e33e6b6c58899deb /omx/gstomxh264enc.c
parenteef92abf2897d398d7a5cf21f187e152c05acacf (diff)
downloadgst-omx-0b348473fa139b90ba121e7e2c3456cdc3604433.tar.gz
omxvideoenc: And set it actually on the right port
Diffstat (limited to 'omx/gstomxh264enc.c')
-rw-r--r--omx/gstomxh264enc.c7
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;