platform/upstream/gstreamer.git
12 years agocamerabin2: Prevent audio source from providing clock
Robert Swain [Thu, 28 Jul 2011 15:56:12 +0000 (12:56 -0300)]
camerabin2: Prevent audio source from providing clock

The audio source inside camerabin2 is put to READY and back to
PLAYING when starting capture, causing the pipeline to lose its
clock. As camerabin2 isn't put to PAUSED->PLAYING again during
this, a new clock isn't selected for elements.

12 years agocamerabin2: Add flags prop to toggle encodebin conversion elements
Robert Swain [Thu, 30 Jun 2011 09:09:44 +0000 (11:09 +0200)]
camerabin2: Add flags prop to toggle encodebin conversion elements

A flags property has been added to encodebin to toggle whether the
conversion elements (ffmpegcolorspace, videoscale, audioconvert,
audioresample, audiorate) are created and linked into the appropriate
branches of encodebin.

Not including these elements avoids some slow caps negotiation and
allows the first buffers to flow through encodebin much more quickly.
However, it imposes that the uncompressed input is appropriate for the
target profile and elements selected to meet that profile.

12 years agocamerabin2: Prepare audiosrc before start-capture
Robert Swain [Wed, 29 Jun 2011 13:35:42 +0000 (15:35 +0200)]
camerabin2: Prepare audiosrc before start-capture

If we bring the audio source up to the PAUSED state before emitting the
start-capture signal to the camera source, when subequently taking the
audio source to the PLAYING state, it will begin capture more quickly.

12 years agocamerabin2: Remove redundant elements
Robert Swain [Wed, 29 Jun 2011 13:18:47 +0000 (15:18 +0200)]
camerabin2: Remove redundant elements

Since camerabin2 has switched to encodebin and encodebin has its own
queues and conversion elements, those preceding encodebin are no longer
necessary and as such can be removed.

12 years agotsdemux: Take into account upstream newsegment events
Edward Hervey [Mon, 1 Aug 2011 16:49:55 +0000 (18:49 +0200)]
tsdemux: Take into account upstream newsegment events

If the incoming newsegment event was in time, use that position value
for the downstream newsegments.

12 years agohlsdemux: Send NEWSEGMENT events
Edward Hervey [Mon, 1 Aug 2011 16:48:03 +0000 (18:48 +0200)]
hlsdemux: Send NEWSEGMENT events

Previously hlsdemux wasn't sending out any newsegment.
Here we push a GST_FORMAT_TIME newsegment, and whenever possible we
try to indicate the proper start time.

This allows downstream elements to relay the start/time values properly
to the sinks, allowing better stream switching.

12 years agompegtsbase: Remove programs on EOS
Edward Hervey [Mon, 1 Aug 2011 13:46:12 +0000 (15:46 +0200)]
mpegtsbase: Remove programs on EOS

Allows subclasses to properly flush out pending data.

12 years agotsdemux: Refactor stream/program removal
Edward Hervey [Mon, 1 Aug 2011 08:54:16 +0000 (10:54 +0200)]
tsdemux: Refactor stream/program removal

The program_stopped vmethod was called before stream_removed vmethod
was being called. Since we only did stream-related operations in there,
we just remove the program_stopped vmethod and do everything in the
stream_removed one.

Also, make sure we flush out all pending data before sending EOS.

12 years agompegtsbase: Prevent stack gardening by using the right type
Nicolas Dufresne [Thu, 28 Jul 2011 22:21:04 +0000 (18:21 -0400)]
mpegtsbase: Prevent stack gardening by using the right type

stream_type is stored as guint inside the GstStructure but was retreived
using valist with a pointer to guint16. This would cause stack gardening
when code is compiled without optimisation (e.g. in -O0 the compiler wont
pad the stack to optimise out required mask).

https://bugzilla.gnome.org/show_bug.cgi?id=655540

12 years agotests: fix compiler warning in faad unit test
Tim-Philipp Müller [Fri, 29 Jul 2011 20:26:41 +0000 (21:26 +0100)]
tests: fix compiler warning in faad unit test

12 years agoid3mux: use now-public GstTagMux base class from libgsttag
Tim-Philipp Müller [Fri, 29 Jul 2011 18:43:11 +0000 (19:43 +0100)]
id3mux: use now-public GstTagMux base class from libgsttag

12 years agotagmux: require subclass to install sink pad template
Tim-Philipp Müller [Thu, 28 Jul 2011 19:38:37 +0000 (20:38 +0100)]
tagmux: require subclass to install sink pad template

Require the subclass to install both source and sink pad
templates. Also, print some warnings if the subclass doesn't
do that.

https://bugzilla.gnome.org/show_bug.cgi?id=555437

12 years agogstmotioncells_dynamic_test: test tool what can to do dynamic change properties
Robert Jobbagy [Wed, 27 Jul 2011 20:34:23 +0000 (22:34 +0200)]
gstmotioncells_dynamic_test: test tool what can to do dynamic change properties

12 years agomotioncells: new element to detect areas of motion
Robert Jobbagy [Wed, 27 Jul 2011 16:58:15 +0000 (18:58 +0200)]
motioncells: new element to detect areas of motion

12 years agohsldemux: Handle change of media types
Edward Hervey [Tue, 26 Jul 2011 15:02:05 +0000 (17:02 +0200)]
hsldemux: Handle change of media types

When switching bitrates, we might end up switching to a different
media-type (like from aac to/from mpeg-ts).

For this switch to behave properly in decodebin2, this patch adds:
* dynamic source pads (which will be added/removed whenever a stream
  media type changes
* re-checking the fragment media type whenever we switch to a different
  playlist

12 years agompeg4videoparse: Fix unitialized variable on old compilers
Edward Hervey [Tue, 26 Jul 2011 11:47:04 +0000 (13:47 +0200)]
mpeg4videoparse: Fix unitialized variable on old compilers

12 years agohlsdemux: fix wrong usage of GST_ELEMENT_ERROR macros and compilation on NetBSD
Olaf Seibert [Wed, 27 Jul 2011 10:02:41 +0000 (11:02 +0100)]
hlsdemux: fix wrong usage of GST_ELEMENT_ERROR macros and compilation on NetBSD

https://bugzilla.gnome.org/show_bug.cgi?id=655319

12 years agopcapparse: fix compiler warning
Tim-Philipp Müller [Wed, 27 Jul 2011 09:56:15 +0000 (10:56 +0100)]
pcapparse: fix compiler warning

gstpcapparse.c: In function 'gst_pcap_parse_chain':
gstpcapparse.c:381:6: error: 'eth_type' may be used uninitialized in this function [-Werror=uninitialized]
gstpcapparse.c:354:11: note: 'eth_type' was declared here

12 years agopcapparse: fix SLL parsing
Felipe Contreras [Tue, 26 Jul 2011 16:11:16 +0000 (19:11 +0300)]
pcapparse: fix SLL parsing

The current code is not checking for ethernet type, as it's supposed to,
but link layer device type and it's hard-coded to only accept dumps from
ethernet (ARPHRD_ETHER; 1). We don't care where the dump was fetched
from (wlan, 3G, etc.)

What we care about is the that the ethernet type is IP (ETHERNET_IP;
0x800), which is clearly field 14:

http://www.tcpdump.org/pcap3_man.html

And do a bit of cleanup.

Signed-off-by: Felipe Contreras <felipe.contreras@nokia.com>
12 years agompegtsbase/tsdemux: Fix stream/pad activation order
Edward Hervey [Thu, 21 Jul 2011 11:26:55 +0000 (13:26 +0200)]
mpegtsbase/tsdemux: Fix stream/pad activation order

We first activate new streams before shutting down old ones.
We emit no-more-pads after we add new streams and emit EOS before
removing old ones.
Also cleanup/refactor a bit more of the code accordingly

12 years agocamerabin2: add location=NULL docs to PORTING
Raluca Elena Podiuc [Fri, 22 Jul 2011 09:26:07 +0000 (12:26 +0300)]
camerabin2: add location=NULL docs to PORTING

https://bugzilla.gnome.org/show_bug.cgi?id=641918

12 years agocamerabin2: If location is NULL do not encode images
Thiago Santos [Fri, 22 Jul 2011 08:38:30 +0000 (11:38 +0300)]
camerabin2: If location is NULL do not encode images

Using a NULL string for location means that the application
doesn't want the image to be encoded, but wants to receive
the preview image. (Only works for image captures)

Useful for application that want the capture in memory only, like
displaying to the user before it choses to encode or take another
picture in avatar capturing scenarios.

https://bugzilla.gnome.org/show_bug.cgi?id=641918

12 years agoschroenc: Update for GstBaseVideoEncoder::finish() signature change
Sebastian Dröge [Thu, 21 Jul 2011 06:04:11 +0000 (08:04 +0200)]
schroenc: Update for GstBaseVideoEncoder::finish() signature change

12 years agovp8enc: Update for GstBaseVideoEncoder::finish() signature change
Sebastian Dröge [Thu, 21 Jul 2011 06:03:51 +0000 (08:03 +0200)]
vp8enc: Update for GstBaseVideoEncoder::finish() signature change

12 years agodiracenc: Update for GstBaseVideoEncoder::finish() signature change
Sebastian Dröge [Thu, 21 Jul 2011 06:03:27 +0000 (08:03 +0200)]
diracenc: Update for GstBaseVideoEncoder::finish() signature change

12 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 (05:44 +0000)]
basevideoencoder: Allow finishing of frames with no src_buffer to drop/free the GstVideoFrame

12 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 (08:39 +0000)]
basevideoencoder: Only get caps from the subclass if they were not set yet by the subclass

12 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()

12 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 agopesparse: Fix stuffing byte handling
Edward Hervey [Wed, 20 Jul 2011 17:16:05 +0000 (19:16 +0200)]
pesparse: Fix stuffing byte handling

We in fact get the size of the header (including stuffing bytes), therefore
use that instead of trying to skip 0xff bytes ourselves since some media
streams do start with 0xff (like mpeg audio's initial 0xfff).

13 years agoFix compilation for unused but not set
Nicolas Dufresne [Mon, 18 Jul 2011 18:53:31 +0000 (14:53 -0400)]
Fix compilation for unused but not set

https://bugzilla.gnome.org/show_bug.cgi?id=654572

13 years agompegtsdemux: fix compiler warnings
Alessandro Decina [Wed, 20 Jul 2011 06:57:47 +0000 (08:57 +0200)]
mpegtsdemux: fix compiler warnings

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 agompegtsbase/tsdemux: Add more comments and removal unused variable
Edward Hervey [Tue, 19 Jul 2011 07:36:53 +0000 (09:36 +0200)]
mpegtsbase/tsdemux: Add more comments and removal unused variable

13 years agompegtsbase: Avoid double removal of streams
Edward Hervey [Tue, 19 Jul 2011 07:36:10 +0000 (09:36 +0200)]
mpegtsbase: Avoid double removal of streams

This can happen if the PCR pid is the same as a audio/video PID.

13 years agompegtsbase: Add a GList of streams to the program
Edward Hervey [Tue, 19 Jul 2011 07:34:37 +0000 (09:34 +0200)]
mpegtsbase: Add a GList of streams to the program

Allows faster iteration of all program streams.

We still keep the Array to allow fast retrieval of stream by PID.

13 years agompegtsbase: Use a bit array instead of an array of gboolean
Edward Hervey [Tue, 19 Jul 2011 06:45:51 +0000 (08:45 +0200)]
mpegtsbase: Use a bit array instead of an array of gboolean

Makes know_psi and is_pes 32 times smaller

13 years agopcapparse: Fix format string compiler warning
Sebastian Dröge [Tue, 19 Jul 2011 06:37:24 +0000 (08:37 +0200)]
pcapparse: Fix format string compiler warning

13 years agodfbvideosink: fix harmless typo in variable initialization
Sreerenj Balachandran [Mon, 18 Jul 2011 11:14:31 +0000 (14:14 +0300)]
dfbvideosink: fix harmless typo in variable initialization

https://bugzilla.gnome.org/show_bug.cgi?id=654840

13 years agoh264parse: remove a check made useless by the last commit
Alessandro Decina [Tue, 12 Jul 2011 17:04:27 +0000 (19:04 +0200)]
h264parse: remove a check made useless by the last commit

13 years agoh264parse: assume byte-stream if stream-format and codec_data are missing from input...
Alessandro Decina [Tue, 12 Jul 2011 17:01:47 +0000 (19:01 +0200)]
h264parse: assume byte-stream if stream-format and codec_data are missing from input caps

13 years agoh264parse: ignore codec_data if stream-format=byte-stream
Alessandro Decina [Wed, 6 Jul 2011 21:24:27 +0000 (23:24 +0200)]
h264parse: ignore codec_data if stream-format=byte-stream

Some encoders set codec_data even when outputting byte-stream. Before this patch
h264parse would incorrectly detect such streams as AVC.

13 years agotsdemux: Use standalone PES parser
Edward Hervey [Mon, 18 Jul 2011 07:12:16 +0000 (09:12 +0200)]
tsdemux: Use standalone PES parser

13 years agompegtsdemux: Add standalone PES parser
Edward Hervey [Sun, 17 Jul 2011 12:17:10 +0000 (14:17 +0200)]
mpegtsdemux: Add standalone PES parser

13 years agompegdefs: clarify some stream ids
Edward Hervey [Sun, 17 Jul 2011 07:49:06 +0000 (09:49 +0200)]
mpegdefs: clarify some stream ids

13 years agotsdemux: whoops, tsdemux isn't ready yet for primary rank :)
Edward Hervey [Sat, 16 Jul 2011 11:51:44 +0000 (13:51 +0200)]
tsdemux: whoops, tsdemux isn't ready yet for primary rank :)

13 years agompegtsbase/tsdemux: Cleanups and comments
Edward Hervey [Sat, 16 Jul 2011 11:47:45 +0000 (13:47 +0200)]
mpegtsbase/tsdemux: Cleanups and comments

13 years agotsdemux: Fix newsegment creation for push mode
Edward Hervey [Sat, 16 Jul 2011 11:44:00 +0000 (13:44 +0200)]
tsdemux: Fix newsegment creation for push mode

And all relevent comments to what it should be doing, refactor everything
a bit. Still not perfect ... but better.

Fixes #654657

13 years agompegtsbase: Store incoming newsegments
Edward Hervey [Fri, 15 Jul 2011 10:08:40 +0000 (12:08 +0200)]
mpegtsbase: Store incoming newsegments

13 years agotagmux: const-ify GstTagList argument of render vfuncs
Tim-Philipp Müller [Fri, 15 Jul 2011 19:57:47 +0000 (20:57 +0100)]
tagmux: const-ify GstTagList argument of render vfuncs

13 years agotagmux: fix up private base class header so it can be made public
Tim-Philipp Müller [Fri, 15 Jul 2011 19:39:20 +0000 (20:39 +0100)]
tagmux: fix up private base class header so it can be made public

Move private bits into a private struct, add some padding.

https://bugzilla.gnome.org/show_bug.cgi?id=555437

13 years agoWe need core/base from git
Tim-Philipp Müller [Fri, 15 Jul 2011 15:10:57 +0000 (16:10 +0100)]
We need core/base from git

Update requirements after out-of-order 0.10.35 release

13 years agotests: camerabin2: fix name of 'image-done' bus message
Raluca Elena Podiuc [Wed, 13 Jul 2011 14:15:36 +0000 (17:15 +0300)]
tests: camerabin2: fix name of 'image-done' bus message

Use the correct bus message for camerabin2 image done and removes
check that is no longer needed for these tests.

13 years agopcapparse: rename offset property to ts-offset
Mark Nauwelaerts [Fri, 15 Jul 2011 08:04:53 +0000 (10:04 +0200)]
pcapparse: rename offset property to ts-offset

... so as to promote consistency with some other elements in the wild.

13 years agovdpau: fix some variable-set-but-unused compiler warnings
Tim-Philipp Müller [Thu, 14 Jul 2011 18:30:45 +0000 (19:30 +0100)]
vdpau: fix some variable-set-but-unused compiler warnings

13 years agompegtsbase: actually set seen_pat=TRUE when we see a PAT
Alessandro Decina [Thu, 14 Jul 2011 22:03:10 +0000 (00:03 +0200)]
mpegtsbase: actually set seen_pat=TRUE when we see a PAT

13 years agoneonhttpsrc: implement URI query
Alessandro Decina [Sun, 26 Jun 2011 18:32:53 +0000 (20:32 +0200)]
neonhttpsrc: implement URI query

13 years agompegtsbase: Split up whether we saw a PAT and its offset
Edward Hervey [Thu, 14 Jul 2011 20:08:56 +0000 (22:08 +0200)]
mpegtsbase: Split up whether we saw a PAT and its offset

Fixes the issue with streams that don't set an offset on their buffers,
like those coming from hlsdemux.

Fixes #653481

13 years agopcapparse: properly apply ts offset
Mark Nauwelaerts [Thu, 14 Jul 2011 15:06:38 +0000 (17:06 +0200)]
pcapparse: properly apply ts offset

13 years agopcapparse: optionally output relative timestamps, possibly shifted by offset
Mark Nauwelaerts [Thu, 14 Jul 2011 14:50:29 +0000 (16:50 +0200)]
pcapparse: optionally output relative timestamps, possibly shifted by offset

That is, output timestamps can then either be the absolute capture time,
or the relative capture time (w.r.t. to first output buffer), or the relative
capture time incremented by some offset.

13 years agopcapparse: also support extracting tcp data
Mark Nauwelaerts [Thu, 14 Jul 2011 14:40:14 +0000 (16:40 +0200)]
pcapparse: also support extracting tcp data

13 years agotests: add some more unit test binaries to .gitignore
Tim-Philipp Müller [Thu, 14 Jul 2011 13:37:14 +0000 (14:37 +0100)]
tests: add some more unit test binaries to .gitignore

13 years agodocs: Revert wrongly committed changes to .args/.hierarchy
Olivier Crête [Wed, 13 Jul 2011 17:44:41 +0000 (13:44 -0400)]
docs: Revert wrongly committed changes to .args/.hierarchy

13 years agompegvideoparse: Restore some unused variables as comments
Olivier Crête [Wed, 13 Jul 2011 17:42:09 +0000 (13:42 -0400)]
mpegvideoparse: Restore some unused variables as comments

13 years agompegtsdemux: Restore erroneously removed data++
Olivier Crête [Wed, 13 Jul 2011 17:39:46 +0000 (13:39 -0400)]
mpegtsdemux: Restore erroneously removed data++

Also, put back some unused code in comment and replace // comments by /* */

13 years agompegdemux: Restore erroneously removed data++
Olivier Crête [Wed, 13 Jul 2011 17:38:31 +0000 (13:38 -0400)]
mpegdemux: Restore erroneously removed data++

Also, put back some unused code in comment and replace // comments by /* */

13 years agoschroedinger: Fix compilation and set-but-not-used compiler warnings
Sebastian Dröge [Wed, 13 Jul 2011 08:42:36 +0000 (10:42 +0200)]
schroedinger: Fix compilation and set-but-not-used compiler warnings

13 years agodiracenc: Fix compilation by including the new gstbasevideoutils.h header and fixing...
Sebastian Dröge [Wed, 13 Jul 2011 08:33:58 +0000 (10:33 +0200)]
diracenc: Fix compilation by including the new gstbasevideoutils.h header and fixing some set but not used compiler warnings

13 years agoexamples/camerabin: Fix set-but-unused warnings
Olivier Crête [Tue, 12 Jul 2011 22:22:35 +0000 (18:22 -0400)]
examples/camerabin: Fix set-but-unused warnings

13 years agojp2k: Fix set-but-unused warnings
Olivier Crête [Tue, 12 Jul 2011 22:20:23 +0000 (18:20 -0400)]
jp2k: Fix set-but-unused warnings

13 years agoresindvd: Fix set-but-unused warnings
Olivier Crête [Tue, 12 Jul 2011 22:18:30 +0000 (18:18 -0400)]
resindvd: Fix set-but-unused warnings

13 years agocog: Fix set-but-unused warnings
Olivier Crête [Tue, 12 Jul 2011 22:16:54 +0000 (18:16 -0400)]
cog: Fix set-but-unused warnings

13 years agodvb: Fix set-but-unused warnings
Olivier Crête [Tue, 12 Jul 2011 22:13:56 +0000 (18:13 -0400)]
dvb: Fix set-but-unused warnings

13 years agovideomeasure: Fix set-but-unused warnings
Olivier Crête [Tue, 12 Jul 2011 22:10:42 +0000 (18:10 -0400)]
videomeasure: Fix set-but-unused warnings

13 years agotta: Fix set-but-unused warnings
Olivier Crête [Tue, 12 Jul 2011 22:09:26 +0000 (18:09 -0400)]
tta: Fix set-but-unused warnings

13 years agosdi: Fix set-but-unused warnings
Olivier Crête [Tue, 12 Jul 2011 22:08:21 +0000 (18:08 -0400)]
sdi: Fix set-but-unused warnings

13 years agovp8: Fix set-but-unused warnings
Olivier Crête [Tue, 12 Jul 2011 22:05:25 +0000 (18:05 -0400)]
vp8: Fix set-but-unused warnings

13 years agortpvp8: Reject unknown bitstream versions
Olivier Crête [Tue, 12 Jul 2011 22:03:53 +0000 (18:03 -0400)]
rtpvp8: Reject unknown bitstream versions

13 years agovideoparsers: Fix set-but-unused warnings
Olivier Crête [Tue, 12 Jul 2011 21:59:56 +0000 (17:59 -0400)]
videoparsers: Fix set-but-unused warnings

13 years agopcapparse: Fix set-but-unused warnings
Olivier Crête [Tue, 12 Jul 2011 21:57:45 +0000 (17:57 -0400)]
pcapparse: Fix set-but-unused warnings

13 years agompegvideoparse: Fix set-but-unused warnings
Olivier Crête [Tue, 12 Jul 2011 21:56:25 +0000 (17:56 -0400)]
mpegvideoparse: Fix set-but-unused warnings

13 years agompegdemux: Fix unused-but-set warnings
Olivier Crête [Tue, 12 Jul 2011 21:53:33 +0000 (17:53 -0400)]
mpegdemux: Fix unused-but-set warnings

13 years agompegtsdemux: Fix unused-but-set warnings
Olivier Crête [Tue, 12 Jul 2011 21:50:27 +0000 (17:50 -0400)]
mpegtsdemux: Fix unused-but-set warnings

13 years agompegtsmux: fix segfault if gst_collect_pads_pop () returns no buffer
Sameer Naik [Mon, 11 Jul 2011 19:48:16 +0000 (01:18 +0530)]
mpegtsmux: fix segfault if gst_collect_pads_pop () returns no buffer

In mpegtsmux_choose_best_stream () call if the gst_collect_pads_pop () call
returns no buffer (NULL), the plugin SegFaults in the gst_buffer_unref call.
To fix this we check if a valid buffer is returned before calling
gst_buffer_unref ().

Fixes bug #654416.

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 agobasevideo: Move the utils from the codec header to its own header
Sebastian Dröge [Sat, 9 Jul 2011 09:40:17 +0000 (11:40 +0200)]
basevideo: Move the utils from the codec header to its own header

13 years agovp8enc: Use destroy notify to free the coder hook
Sebastian Dröge [Sat, 9 Jul 2011 09:31:02 +0000 (11:31 +0200)]
vp8enc: Use destroy notify to free the coder hook

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

13 years agobasevideodecoder: Don't reorder serialized src events
Sebastian Dröge [Tue, 28 Jun 2011 09:47:25 +0000 (11:47 +0200)]
basevideodecoder: Don't reorder serialized src events

And allow to drop EOS by the subclass if ::finish returns
DROPPED. This requires that the subclass sends EOS manually later.

Fixes bug #653544.

13 years agobasevideo: Add the caps to the GstVideoState and clean up caps/codec_data properly
Sebastian Dröge [Mon, 27 Jun 2011 07:41:40 +0000 (09:41 +0200)]
basevideo: Add the caps to the GstVideoState and clean up caps/codec_data properly

Having access to the caps in ::set_format can be useful if
non-standard caps fields like the h264 alignment must be accessed.

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 agomxfdemux: Properly return seeking errors if the requested position can't be found
Sebastian Dröge [Fri, 8 Jul 2011 09:52:17 +0000 (11:52 +0200)]
mxfdemux: Properly return seeking errors if the requested position can't be found

13 years agointer: add ignore file for intermediate files
Stefan Kost [Thu, 7 Jul 2011 23:00:44 +0000 (16:00 -0700)]
inter: add ignore file for intermediate files

13 years agodocs: add camerabin2 to the docs and update the doc files
Stefan Kost [Thu, 7 Jul 2011 22:59:05 +0000 (15:59 -0700)]
docs: add camerabin2 to the docs and update the doc files

13 years agocamerabin2: don't mess with camerabin (1) namespace
Stefan Kost [Thu, 7 Jul 2011 22:55:59 +0000 (15:55 -0700)]
camerabin2: don't mess with camerabin (1) namespace

Use an extra '2' to stay out of the old namespace.