mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
omxvideoenc: And set it actually on the right port
This commit is contained in:
parent
eef92abf28
commit
0b348473fa
3 changed files with 15 additions and 6 deletions
|
@ -88,9 +88,12 @@ gst_omx_h263_enc_set_format (GstOMXVideoEnc * enc, GstOMXPort * port,
|
|||
OMX_ERRORTYPE err;
|
||||
guint profile_id, level_id;
|
||||
|
||||
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_CodingH263;
|
||||
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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -92,9 +92,12 @@ gst_omx_mpeg4_video_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_CodingMPEG4;
|
||||
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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue