mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
omxvideoenc: Properly check the nVersion field
This commit is contained in:
parent
68c8196912
commit
b9af5f4f31
1 changed files with 1 additions and 1 deletions
|
@ -281,7 +281,7 @@ gst_omx_video_enc_open (GstVideoEncoder * encoder)
|
|||
if (err == OMX_ErrorNone) {
|
||||
#ifdef USE_OMX_TARGET_RPI
|
||||
/* FIXME: Workaround for RPi returning garbage for this parameter */
|
||||
if (bitrate_param.nVersion == 0) {
|
||||
if (bitrate_param.nVersion.nVersion == 0) {
|
||||
GST_OMX_INIT_STRUCT (&bitrate_param);
|
||||
bitrate_param.nPortIndex = self->enc_out_port->index;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue