omxvideoenc: restore OMX default target-bitrate if requested by user
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 29 Mar 2018 14:42:40 +0000 (16:42 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 23 Apr 2018 08:41:10 +0000 (10:41 +0200)
commit72cb1943da2d28b8ec87d75d0821f6e480d2ef4d
treeda3be618445e292b23fb48c25e471fb12c632b39
parent542faf0f367a0dd06bf83bf124572a28b46dc04c
omxvideoenc: restore OMX default target-bitrate if requested by user

0xffffffff is the magic number in gst-omx meaning 'the default value
defined in OMX'. This works fine with OMX parameters which are only set
once when starting the component but not with configs which can be
changed while PLAYING.
Save the actual OMX default bitrate so we can restore it later if user
sets back 0xffffffff on the property.

Added GST_OMX_PROP_OMX_DEFAULT so we stop hardcoding magic numbers
everywhere.

https://bugzilla.gnome.org/show_bug.cgi?id=794998
omx/gstomx.h
omx/gstomxvideoenc.c
omx/gstomxvideoenc.h