platform/upstream/gstreamer.git
12 years agobasevideoencoder: Proxy the width/height/framerate/PAR constraints of downstream...
Sebastian Dröge [Fri, 12 Aug 2011 10:25:03 +0000 (12:25 +0200)]
basevideoencoder: Proxy the width/height/framerate/PAR constraints of downstream caps to upstream

This allows to specify constraints on the compressed downstream caps
by muxers or capsfilters, which will then be forwarded to upstream
and allows video converters to fulfill the constraints.

Code based on Mark Nauwelaerts audio encoder base class.

12 years agobasevideoencoder: Remove old ::getcaps() comment
Sebastian Dröge [Fri, 12 Aug 2011 10:13:45 +0000 (12:13 +0200)]
basevideoencoder: Remove old ::getcaps() comment

12 years agobasevideoencoder: Remove ::get_caps() vfunc
Sebastian Dröge [Fri, 12 Aug 2011 10:06:23 +0000 (12:06 +0200)]
basevideoencoder: Remove ::get_caps() vfunc

Subclasses can set the caps more efficiently and this only
caused additional indirections.

12 years agoomxvideoenc: Use "video/x-raw-yuv" as sink template caps instead of strict I420 caps
Sebastian Dröge [Wed, 10 Aug 2011 08:24:21 +0000 (10:24 +0200)]
omxvideoenc: Use "video/x-raw-yuv" as sink template caps instead of strict I420 caps

12 years agoomxmpeg4videodec: Don't require width/height on sink pad caps
Sebastian Dröge [Wed, 10 Aug 2011 08:23:39 +0000 (10:23 +0200)]
omxmpeg4videodec: Don't require width/height on sink pad caps

12 years agoomxvideodec: Use "video/x-raw-yuv" as src template caps instead of strict I420 caps
Sebastian Dröge [Wed, 10 Aug 2011 08:11:37 +0000 (10:11 +0200)]
omxvideodec: Use "video/x-raw-yuv" as src template caps instead of strict I420 caps

12 years agoomxvideoenc: Set the state back to StateLoaded even if an error happened
Sebastian Dröge [Wed, 10 Aug 2011 07:56:30 +0000 (09:56 +0200)]
omxvideoenc: Set the state back to StateLoaded even if an error happened

12 years agoomx: Don't hold any locks while calling OMX_SendCommand()
Sebastian Dröge [Wed, 10 Aug 2011 07:49:57 +0000 (09:49 +0200)]
omx: Don't hold any locks while calling OMX_SendCommand()

It might call into one of the callbacks and lead to deadlocks, e.g.
with the Qualcomm OMX implementation.

12 years agoomx: Move some code
Sebastian Dröge [Wed, 10 Aug 2011 07:32:01 +0000 (09:32 +0200)]
omx: Move some code

12 years agoomx: Reset pending reconfigure output ports when changing the state from Executing...
Sebastian Dröge [Wed, 10 Aug 2011 07:23:10 +0000 (09:23 +0200)]
omx: Reset pending reconfigure output ports when changing the state from Executing to any lower state

12 years agoomx: Fix crash when setting last error after the ports were freed
Sebastian Dröge [Wed, 10 Aug 2011 07:08:00 +0000 (09:08 +0200)]
omx: Fix crash when setting last error after the ports were freed

12 years agoomx: Free component structure
Sebastian Dröge [Wed, 10 Aug 2011 07:03:52 +0000 (09:03 +0200)]
omx: Free component structure

12 years agoomx: Make component destruction safer
Sebastian Dröge [Wed, 10 Aug 2011 07:02:52 +0000 (09:02 +0200)]
omx: Make component destruction safer

12 years agoomx: Set pAppPrivate of buffers to NULL when deallocating buffers
Sebastian Dröge [Wed, 10 Aug 2011 06:53:05 +0000 (08:53 +0200)]
omx: Set pAppPrivate of buffers to NULL when deallocating buffers

This prevents usage of freed memory later if the OMX component
has weird behaviour.

12 years agoomxvideodec: Set the state back to StateLoaded even if an error happened
Sebastian Dröge [Wed, 10 Aug 2011 06:52:25 +0000 (08:52 +0200)]
omxvideodec: Set the state back to StateLoaded even if an error happened

12 years agoomx: Add some assertions to check if the buffer pAppPrivate is still correct
Sebastian Dröge [Wed, 10 Aug 2011 06:51:54 +0000 (08:51 +0200)]
omx: Add some assertions to check if the buffer pAppPrivate is still correct

12 years agoomx: Add parenthesis at correct places in the struct init macro
Sebastian Dröge [Mon, 8 Aug 2011 11:04:30 +0000 (13:04 +0200)]
omx: Add parenthesis at correct places in the struct init macro

12 years agoomx: Only prevent setting a higher state if the component is in an error state
Sebastian Dröge [Mon, 8 Aug 2011 10:12:58 +0000 (12:12 +0200)]
omx: Only prevent setting a higher state if the component is in an error state

12 years agobasevideodecoder: Use the cached video frame size instead of recalculating it
Sebastian Dröge [Wed, 3 Aug 2011 14:02:01 +0000 (16:02 +0200)]
basevideodecoder: Use the cached video frame size instead of recalculating it

12 years agoomx: Improve debugging in param/config getter/setter wrappers
Sebastian Dröge [Wed, 3 Aug 2011 13:35:01 +0000 (15:35 +0200)]
omx: Improve debugging in param/config getter/setter wrappers

12 years agoomxvideodec: Don't abort if the color format is not supported but give a useful error...
Sebastian Dröge [Wed, 3 Aug 2011 11:10:33 +0000 (13:10 +0200)]
omxvideodec: Don't abort if the color format is not supported but give a useful error message

12 years agoomxvideoenc: Don't fail if setting the bitrate or profile is not supported by the...
Sebastian Dröge [Tue, 2 Aug 2011 13:14:37 +0000 (15:14 +0200)]
omxvideoenc: Don't fail if setting the bitrate or profile is not supported by the component

Also always set/get the profile, even if there are no peer caps.

12 years agobasevideoencoder: Make access to the list of frames threadsafe
Sebastian Dröge [Tue, 2 Aug 2011 13:14:24 +0000 (15:14 +0200)]
basevideoencoder: Make access to the list of frames threadsafe

12 years agoomx: Add a hacks flag for the Qualcomm 7x30 OMX_FillThisBuffer() race and make it...
Sebastian Dröge [Mon, 1 Aug 2011 11:22:05 +0000 (13:22 +0200)]
omx: Add a hacks flag for the Qualcomm 7x30 OMX_FillThisBuffer() race and make it optional

12 years agoomx: Add workaround for QCOM 7x30 race condition
Sebastian Dröge [Fri, 29 Jul 2011 11:56:59 +0000 (13:56 +0200)]
omx: Add workaround for QCOM 7x30 race condition

12 years agoomxh263enc: Add H.263 encoder element
Sebastian Dröge [Fri, 29 Jul 2011 10:06:21 +0000 (12:06 +0200)]
omxh263enc: Add H.263 encoder element

12 years agoomxmpeg4videoenc: Add support for setting profile/level via caps
Sebastian Dröge [Fri, 29 Jul 2011 09:26:39 +0000 (11:26 +0200)]
omxmpeg4videoenc: Add support for setting profile/level via caps

12 years agoomxh264enc: Add support for setting profile/level via caps
Sebastian Dröge [Thu, 28 Jul 2011 12:14:45 +0000 (14:14 +0200)]
omxh264enc: Add support for setting profile/level via caps

12 years agoomxvideoenc: Add support for forcing the next frame to be a keyframe
Sebastian Dröge [Thu, 28 Jul 2011 10:58:25 +0000 (12:58 +0200)]
omxvideoenc: Add support for forcing the next frame to be a keyframe

12 years agoomxvideoenc: Add support for setting bitrate/quantization related parameters
Sebastian Dröge [Thu, 28 Jul 2011 09:54:16 +0000 (11:54 +0200)]
omxvideoenc: Add support for setting bitrate/quantization related parameters

12 years agoomx: Add wrapper functions for OMX_[GS]et{Config,Parameter}
Sebastian Dröge [Thu, 28 Jul 2011 08:23:08 +0000 (10:23 +0200)]
omx: Add wrapper functions for OMX_[GS]et{Config,Parameter}

12 years agoomx: Add macro to initialize OpenMAX structures
Sebastian Dröge [Thu, 28 Jul 2011 07:54:53 +0000 (09:54 +0200)]
omx: Add macro to initialize OpenMAX structures

12 years agoomxvideoenc: Don't output 0-byte buffers
Sebastian Dröge [Thu, 28 Jul 2011 07:08:38 +0000 (09:08 +0200)]
omxvideoenc: Don't output 0-byte buffers

13 years agoomx: Ensure that the pAppPrivate pointer in OMX buffers is set correctly
Sebastian Dröge [Mon, 25 Jul 2011 13:05:08 +0000 (15:05 +0200)]
omx: Ensure that the pAppPrivate pointer in OMX buffers is set correctly

13 years agoomxvideo{enc,dec}: Only set/unset flushing state on ports if they were created already
Sebastian Dröge [Mon, 25 Jul 2011 11:19:06 +0000 (13:19 +0200)]
omxvideo{enc,dec}: Only set/unset flushing state on ports if they were created already

13 years agoomxwmvdec: Add WMV video decoder element
Sebastian Dröge [Mon, 25 Jul 2011 10:01:05 +0000 (12:01 +0200)]
omxwmvdec: Add WMV video decoder element

13 years agoomxh263dec: Add H.263 decoder element
Sebastian Dröge [Mon, 25 Jul 2011 09:44:56 +0000 (11:44 +0200)]
omxh263dec: Add H.263 decoder element

13 years agoomxh264enc: Add H.264 encoder element
Sebastian Dröge [Mon, 25 Jul 2011 09:32:51 +0000 (11:32 +0200)]
omxh264enc: Add H.264 encoder element

13 years agoomxvideodec: Try harder to deallocate the buffers after errors happened
Sebastian Dröge [Mon, 25 Jul 2011 08:48:58 +0000 (10:48 +0200)]
omxvideodec: Try harder to deallocate the buffers after errors happened

13 years agoomxvideoenc: Try harder to deallocate the buffers after errors happened
Sebastian Dröge [Mon, 25 Jul 2011 08:47:28 +0000 (10:47 +0200)]
omxvideoenc: Try harder to deallocate the buffers after errors happened

13 years agoomx: Deallocate port buffers before freeing the component
Sebastian Dröge [Mon, 25 Jul 2011 08:46:49 +0000 (10:46 +0200)]
omx: Deallocate port buffers before freeing the component

They should be deallocated by the caller before reaching the
Loaded state but to be on the safe side we will make sure
they're really deallocated here.

13 years agoomxvideoenc: Add initial support for stride conversion
Sebastian Dröge [Thu, 21 Jul 2011 09:15:14 +0000 (11:15 +0200)]
omxvideoenc: Add initial support for stride conversion

13 years agoomx: Set default roles for the components if none were set from the config file
Sebastian Dröge [Thu, 21 Jul 2011 08:38:26 +0000 (10:38 +0200)]
omx: Set default roles for the components if none were set from the config file

13 years agoomx: Failure to set the component role is fatal
Sebastian Dröge [Thu, 21 Jul 2011 08:36:19 +0000 (10:36 +0200)]
omx: Failure to set the component role is fatal

13 years agoomxvideoenc: Add support for setting codec_data on the srcpad caps
Sebastian Dröge [Thu, 21 Jul 2011 05:53:25 +0000 (07:53 +0200)]
omxvideoenc: Add support for setting codec_data on the srcpad caps

13 years agoomxvideoenc: Free/drop GstVideoFrames that resulted in an empty buffer
Sebastian Dröge [Thu, 21 Jul 2011 05:44:34 +0000 (07:44 +0200)]
omxvideoenc: Free/drop GstVideoFrames that resulted in an empty buffer

13 years agobasevideoencoder: Allow finishing of frames with no src_buffer to drop/free the GstVi...
Sebastian Dröge [Thu, 21 Jul 2011 05:44:10 +0000 (07:44 +0200)]
basevideoencoder: Allow finishing of frames with no src_buffer to drop/free the GstVideoFrame

13 years agoomxvideoenc: Remove obsolete TODO comment
Sebastian Dröge [Thu, 21 Jul 2011 05:31:05 +0000 (07:31 +0200)]
omxvideoenc: Remove obsolete TODO comment

13 years agoomx: Use libgstopenmax.so for the plugin filename and openmax for the plugin name
Sebastian Dröge [Wed, 20 Jul 2011 09:09:54 +0000 (11:09 +0200)]
omx: Use libgstopenmax.so for the plugin filename and openmax for the plugin name

Resolves conflicts with gst-openmax.

13 years agoomxvideoenc: Add video encoder base class and MPEG4 video encoder
Sebastian Dröge [Wed, 20 Jul 2011 06:34:33 +0000 (08:34 +0200)]
omxvideoenc: Add video encoder base class and MPEG4 video encoder

Unfortunately requires lots of hacks again to work properly with
Bellagio.

13 years agobasevideoencoder: Only get caps from the subclass if they were not set yet by the...
Sebastian Dröge [Wed, 20 Jul 2011 08:39:51 +0000 (10:39 +0200)]
basevideoencoder: Only get caps from the subclass if they were not set yet by the subclass

13 years agobasevideoencoder: Delay sending of serialized sink events until finish_frame()
Sebastian Dröge [Wed, 20 Jul 2011 07:25:28 +0000 (09:25 +0200)]
basevideoencoder: Delay sending of serialized sink events until finish_frame()

13 years agobasevideoencoder: Add ::reset vfunc and handle ::reset/::finish the same way as in...
Sebastian Dröge [Wed, 20 Jul 2011 07:09:25 +0000 (09:09 +0200)]
basevideoencoder: Add ::reset vfunc and handle ::reset/::finish the same way as in the decoder

13 years agobasevideoencoder: Use a temporary GstVideoState until the subclass accepted the caps
Sebastian Dröge [Tue, 19 Jul 2011 10:50:43 +0000 (12:50 +0200)]
basevideoencoder: Use a temporary GstVideoState until the subclass accepted the caps

Also store the caps in the GstVideoState and assume a PAR of 1/1 instead
of 0/1 if no PAR is specified in the caps.

13 years agoomx: Improve debug output a bit
Sebastian Dröge [Tue, 19 Jul 2011 10:29:51 +0000 (12:29 +0200)]
omx: Improve debug output a bit

13 years agoomx: Rework port reconfiguration again and only use the Bellagio specific hacks with...
Sebastian Dröge [Tue, 19 Jul 2011 08:33:54 +0000 (10:33 +0200)]
omx: Rework port reconfiguration again and only use the Bellagio specific hacks with Bellagio

We only reconfigure ports that need to be reconfigured now instead of
always all ports.

13 years agoomx: Add infrastructure to enable special hacks for broken OpenMAX implementations
Sebastian Dröge [Tue, 19 Jul 2011 08:33:15 +0000 (10:33 +0200)]
omx: Add infrastructure to enable special hacks for broken OpenMAX implementations

13 years agoomx: When acquiring a buffer from an input port always wait until all output ports...
Sebastian Dröge [Mon, 18 Jul 2011 11:10:49 +0000 (13:10 +0200)]
omx: When acquiring a buffer from an input port always wait until all output ports are reconfigured

13 years agoomxvideodec: Add support for converting between omx and gst rowstrides
Sebastian Dröge [Mon, 18 Jul 2011 06:41:20 +0000 (08:41 +0200)]
omxvideodec: Add support for converting between omx and gst rowstrides

13 years agoomx: Provide all buffers to output ports after enabling them
Sebastian Dröge [Thu, 14 Jul 2011 08:34:09 +0000 (10:34 +0200)]
omx: Provide all buffers to output ports after enabling them

13 years agoomxvideodec: Add support for NV12 / OMX_COLOR_FormatYUV420SemiPlanar
Sebastian Dröge [Thu, 14 Jul 2011 06:29:03 +0000 (08:29 +0200)]
omxvideodec: Add support for NV12 / OMX_COLOR_FormatYUV420SemiPlanar

13 years agoomxvideodec: Only flush the component ports after we passed input to them
Sebastian Dröge [Thu, 14 Jul 2011 05:58:41 +0000 (07:58 +0200)]
omxvideodec: Only flush the component ports after we passed input to them

13 years agoomxvideodec: Only change states downwards if an upper state was reached
Sebastian Dröge [Wed, 13 Jul 2011 19:19:34 +0000 (21:19 +0200)]
omxvideodec: Only change states downwards if an upper state was reached

13 years agoomx: Add support for setting the component-role
Sebastian Dröge [Wed, 13 Jul 2011 18:37:02 +0000 (20:37 +0200)]
omx: Add support for setting the component-role

13 years agoomx: Improve error reporting by formatting the error codes better and also providing...
Sebastian Dröge [Wed, 13 Jul 2011 18:22:51 +0000 (20:22 +0200)]
omx: Improve error reporting by formatting the error codes better and also providing their string representation

13 years agobuild: Dist autogen.sh
Sebastian Dröge [Wed, 13 Jul 2011 12:36:14 +0000 (14:36 +0200)]
build: Dist autogen.sh

13 years agobuild: Only require GStreamer >= 0.10.29 and GLib >= 2.16
Sebastian Dröge [Wed, 13 Jul 2011 12:35:51 +0000 (14:35 +0200)]
build: Only require GStreamer >= 0.10.29 and GLib >= 2.16

13 years agobuild: Dist gstomx.conf
Sebastian Dröge [Wed, 13 Jul 2011 12:04:47 +0000 (14:04 +0200)]
build: Dist gstomx.conf

13 years agobuild: Clean _stdint.h on "make distclean"
Sebastian Dröge [Wed, 13 Jul 2011 12:04:20 +0000 (14:04 +0200)]
build: Clean _stdint.h on "make distclean"

13 years agoomxvideodec: Fix typo
Sebastian Dröge [Wed, 13 Jul 2011 12:02:50 +0000 (14:02 +0200)]
omxvideodec: Fix typo

13 years agoomx: Dist gstomx.h
Sebastian Dröge [Wed, 13 Jul 2011 11:59:50 +0000 (13:59 +0200)]
omx: Dist gstomx.h

13 years agoomxvideodec: Set SYNCFRAME flag on the OMX buffers for non-delta units
Sebastian Dröge [Wed, 13 Jul 2011 10:46:50 +0000 (12:46 +0200)]
omxvideodec: Set SYNCFRAME flag on the OMX buffers for non-delta units

13 years agoomxvideodec: Free all pending frames when resetting the decoder
Sebastian Dröge [Wed, 13 Jul 2011 10:37:44 +0000 (12:37 +0200)]
omxvideodec: Free all pending frames when resetting the decoder

Workaround for https://bugzilla.gnome.org/show_bug.cgi?id=654529

13 years agoomxvideodec: Handle output buffers without a corresponding GstVideoFrame more gracefully
Sebastian Dröge [Wed, 13 Jul 2011 07:59:49 +0000 (09:59 +0200)]
omxvideodec: Handle output buffers without a corresponding GstVideoFrame more gracefully

This can happen on EOS in some cases and when the input is not
properly framed.

13 years agoomxvideodec: Fix deadlock when finishing old frames that are left over by the decoder
Sebastian Dröge [Wed, 13 Jul 2011 07:31:22 +0000 (09:31 +0200)]
omxvideodec: Fix deadlock when finishing old frames that are left over by the decoder

13 years agoomxh264dec: It's called H.264, not H264
Sebastian Dröge [Tue, 12 Jul 2011 09:37:28 +0000 (11:37 +0200)]
omxh264dec: It's called H.264, not H264

13 years agoomxvideodec: Make sink/src pad template caps configurable
Sebastian Dröge [Tue, 12 Jul 2011 09:36:42 +0000 (11:36 +0200)]
omxvideodec: Make sink/src pad template caps configurable

13 years agoomx: Allow to set a preferred configuration directory with the GST_OMX_CONFIG_DIR...
Sebastian Dröge [Tue, 12 Jul 2011 09:13:50 +0000 (11:13 +0200)]
omx: Allow to set a preferred configuration directory with the GST_OMX_CONFIG_DIR environment variable

13 years agoomxvideodec: Make core/component-name and in/outport index configurable
Sebastian Dröge [Tue, 12 Jul 2011 08:55:57 +0000 (10:55 +0200)]
omxvideodec: Make core/component-name and in/outport index configurable

13 years agoomx: Add initial version of configuration system
Sebastian Dröge [Tue, 12 Jul 2011 08:05:31 +0000 (10:05 +0200)]
omx: Add initial version of configuration system

This now only registers elements that are specified in the
configuration file.

The configuration file is a keyfile in the first XDG configuration
directory with the name gstomx.conf.

13 years agoomxh264dec: Rename from omxh264videodec to omxh264dec
Sebastian Dröge [Tue, 12 Jul 2011 06:53:15 +0000 (08:53 +0200)]
omxh264dec: Rename from omxh264videodec to omxh264dec

13 years agoomxh264videodec: Require alignment=au and stream-format={avc,bytestream}
Sebastian Dröge [Tue, 12 Jul 2011 06:40:48 +0000 (08:40 +0200)]
omxh264videodec: Require alignment=au and stream-format={avc,bytestream}

13 years agobasevideodecoder: First inform subclass about resetting before resetting/freeing...
Sebastian Dröge [Mon, 11 Jul 2011 10:59:07 +0000 (12:59 +0200)]
basevideodecoder: First inform subclass about resetting before resetting/freeing all internal state

The subclass might want to access the old state.

13 years agobasevideodecoder: Track present position on discont before resetting it
Sebastian Dröge [Mon, 11 Jul 2011 10:36:42 +0000 (12:36 +0200)]
basevideodecoder: Track present position on discont before resetting it

13 years agobasevideodecoder: Also protect the list of pending frames from concurrent access...
Sebastian Dröge [Mon, 11 Jul 2011 09:52:33 +0000 (11:52 +0200)]
basevideodecoder: Also protect the list of pending frames from concurrent access when pushing all pendings events

13 years agobasevideocodec: Protect access to the list of pending frames with the object lock
Sebastian Dröge [Mon, 11 Jul 2011 09:28:40 +0000 (11:28 +0200)]
basevideocodec: Protect access to the list of pending frames with the object lock

This is required if ::finish_frame() and all buffer output happens
on a different thread than the sinkpad streaming thread.

13 years agobasevideodecoder: Set the correct lists to NULL after freeing
Sebastian Dröge [Mon, 11 Jul 2011 07:35:25 +0000 (09:35 +0200)]
basevideodecoder: Set the correct lists to NULL after freeing

13 years agobasevideodecoder: Work with a copy of the GstVideoState in setcaps until the caps...
Sebastian Dröge [Mon, 11 Jul 2011 06:54:53 +0000 (08:54 +0200)]
basevideodecoder: Work with a copy of the GstVideoState in setcaps until the caps are accepted

Also fix a refcount problem with the codec_data.

13 years agoomxh264videodec: Add h.264 video decoder
Sebastian Dröge [Tue, 12 Jul 2011 06:34:44 +0000 (08:34 +0200)]
omxh264videodec: Add h.264 video decoder

13 years agoomxmpeg4videodec: Fix debug category name
Sebastian Dröge [Tue, 12 Jul 2011 06:29:15 +0000 (08:29 +0200)]
omxmpeg4videodec: Fix debug category name

13 years agobasevideo: Move the utils from the codec header to its own header
Sebastian Dröge [Sat, 9 Jul 2011 09:41:42 +0000 (11:41 +0200)]
basevideo: Move the utils from the codec header to its own header

13 years agobasevideo: Use GSlice for allocating GstVideoFrame and don't duplicate code in the...
Sebastian Dröge [Sat, 9 Jul 2011 09:32:06 +0000 (11:32 +0200)]
basevideo: Use GSlice for allocating GstVideoFrame and don't duplicate code in the decoder base class

13 years agoomxvideodec: Use the destroy notify to free the coder_hook
Sebastian Dröge [Sat, 9 Jul 2011 09:05:37 +0000 (11:05 +0200)]
omxvideodec: Use the destroy notify to free the coder_hook

13 years agobasevideo: Add destroy notify for the coder_hook to prevent memory leaks
Sebastian Dröge [Sat, 9 Jul 2011 08:57:52 +0000 (10:57 +0200)]
basevideo: Add destroy notify for the coder_hook to prevent memory leaks

Fixes bug #654293.

13 years agobasevideo: Fix GType names to not conflict with the public video base classes
Sebastian Dröge [Sat, 9 Jul 2011 08:44:16 +0000 (10:44 +0200)]
basevideo: Fix GType names to not conflict with the public video base classes

It's still not possible to include headers of both in the same file
or compile/link both into the same plugin but that shouldn't be
necessary anyway.

13 years agoomxvideodec: Fix some minor memory leaks
Sebastian Dröge [Fri, 8 Jul 2011 13:42:56 +0000 (15:42 +0200)]
omxvideodec: Fix some minor memory leaks

13 years agoomx: Rework port reconfiguration
Sebastian Dröge [Fri, 8 Jul 2011 13:25:07 +0000 (15:25 +0200)]
omx: Rework port reconfiguration

We always reconfigure all ports now if the settings of one
port changes to prevent lots of race conditions, dropped
frames and similar issues.

13 years agoomxvideodec: Use the frames storage of the base class instead of implementing our own
Sebastian Dröge [Fri, 8 Jul 2011 11:16:45 +0000 (13:16 +0200)]
omxvideodec: Use the frames storage of the base class instead of implementing our own

They could get out of sync and we could store already destroyed frames.

13 years agoomx: Clarify GQueue/GPtrArray element types
Sebastian Dröge [Thu, 7 Jul 2011 10:51:03 +0000 (12:51 +0200)]
omx: Clarify GQueue/GPtrArray element types

13 years agoomx: Add more checks to acquire_buffer() and return the current state additional...
Sebastian Dröge [Thu, 7 Jul 2011 10:23:24 +0000 (12:23 +0200)]
omx: Add more checks to acquire_buffer() and return the current state additional to the buffer

Also refactor the code flow in the video decoder for this. This makes
the usage of acquire_buffer() easier and more atomic.