Commit graph

17 commits

Author SHA1 Message Date
Sebastian Dröge f5690ff412 omxvideodec: Free all pending frames when resetting the decoder
Workaround for https://bugzilla.gnome.org/show_bug.cgi?id=654529
2011-07-13 12:37:44 +02:00
Sebastian Dröge af159705c9 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.
2011-07-13 10:02:20 +02:00
Sebastian Dröge 1b08dfa2a6 omxvideodec: Fix deadlock when finishing old frames that are left over by the decoder 2011-07-13 09:31:22 +02:00
Sebastian Dröge a24cdd41bc omxvideodec: Make sink/src pad template caps configurable 2011-07-12 11:36:42 +02:00
Sebastian Dröge 113d18caea omxvideodec: Make core/component-name and in/outport index configurable 2011-07-12 11:04:16 +02:00
Sebastian Dröge 2042e08b33 omxvideodec: Use the destroy notify to free the coder_hook 2011-07-09 11:06:06 +02:00
Sebastian Dröge 9c9315059e omxvideodec: Fix some minor memory leaks 2011-07-09 11:06:06 +02:00
Sebastian Dröge db08890edd 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.
2011-07-09 11:06:06 +02:00
Sebastian Dröge 0fbff1000f 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.
2011-07-09 11:06:06 +02:00
Sebastian Dröge c8c1c7f10f 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.
2011-07-09 11:06:06 +02:00
Sebastian Dröge 934fac7946 omxvideodec: Also flush/unflush the input port when changing the state PAUSED<->READY 2011-07-09 11:06:06 +02:00
Sebastian Dröge 3ac2bfc976 omxvideodec: Don't leak the codec_data after sending it 2011-07-09 11:06:06 +02:00
Sebastian Dröge 939d30ed17 omxvideodec: Remove reconfiguration test hack 2011-07-09 11:06:05 +02:00
Sebastian Dröge 9a3753bd61 omxvideodec: Error out if the GStreamer allocated buffer is smaller than the OpenMAX output buffer
Usually this must never happen but currently it happens during reconfigurations
because of a race condition. Still it's better than crashing.
2011-07-09 11:06:05 +02:00
Sebastian Dröge 11d2e806c2 omxvideodec: Remove obsolete FIXME comment 2011-07-09 11:06:05 +02:00
Sebastian Dröge 08181d86dc omxvideodec: Make the inport and outport index configurable by the subclass 2011-07-09 11:06:05 +02:00
Sebastian Dröge bc1e73e8c8 omx: Add initial version of OpenMAX framework, video decoder base class and MPEG4 video decoder
This currently hardcodes a lot of stuff but works at least.

Also adds a generic framework for handling OpenMAX cores, components
and ports.
2011-07-09 11:06:05 +02:00