platform/upstream/gst-plugins-base.git
11 years agoRevert "decodebin2: use NO_RESYNC flag"
Sebastian Dröge [Fri, 24 May 2013 09:47:13 +0000 (11:47 +0200)]
Revert "decodebin2: use NO_RESYNC flag"

This reverts commit 0feecef2754ef208372eb39332b4f6fa2067d3d5.

11 years agodecodebin: Use signal handler IDs instead of disconnecting by function
Sebastian Dröge [Wed, 22 May 2013 15:29:17 +0000 (17:29 +0200)]
decodebin: Use signal handler IDs instead of disconnecting by function

This is cleaner and faster.

11 years agodecodebin: Connect and disconnect the have-type signal of typefind before starting...
Sebastian Dröge [Wed, 22 May 2013 11:49:18 +0000 (13:49 +0200)]
decodebin: Connect and disconnect the have-type signal of typefind before starting/shutting down

11 years agotypefind: Add variant=itu to the h263 typefinder caps
Sebastian Dröge [Wed, 22 May 2013 08:57:57 +0000 (10:57 +0200)]
typefind: Add variant=itu to the h263 typefinder caps

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

11 years agoplaysink: Use signal handler IDs instead of disconnecting/blocking by function
Sebastian Dröge [Tue, 21 May 2013 14:35:18 +0000 (16:35 +0200)]
playsink: Use signal handler IDs instead of disconnecting/blocking by function

This is cleaner and faster.

11 years agoalsasrc: Make using driver timestamps possible
Alexander Schrab [Tue, 7 May 2013 05:49:00 +0000 (07:49 +0200)]
alsasrc: Make using driver timestamps possible

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

11 years agoalsa: Dump min/max period time and buffer time in alsasrc too
Sebastian Dröge [Mon, 20 May 2013 09:23:06 +0000 (11:23 +0200)]
alsa: Dump min/max period time and buffer time in alsasrc too

11 years agodmabuf: Make sure that memory is unmapped before releasing it
Benjamin Gaignard [Fri, 17 May 2013 07:16:08 +0000 (09:16 +0200)]
dmabuf: Make sure that memory is unmapped before releasing it

Be sure that memory is unmapped before releasing it.

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

11 years agovideo: make mask arguments to gst_video_format_from_masks() unsigned
Tim-Philipp Müller [Thu, 16 May 2013 10:35:58 +0000 (11:35 +0100)]
video: make mask arguments to gst_video_format_from_masks() unsigned

These should really be unsigned.

11 years agoximagesink: add support for 32-bit RGB with alpha mask
Benjamin Gaignard [Thu, 16 May 2013 08:52:29 +0000 (10:52 +0200)]
ximagesink: add support for 32-bit RGB with alpha mask

When X screen return a depth = 32 with bpp = 32, the alpha mask
must be correctly set to have a known GStreamer video format.
X visual structure doesn't provide the alpha mask information,
but we can find it from the others masks.

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

11 years agotests: ignore new NV16 format in videoscale unit test
Tim-Philipp Müller [Thu, 16 May 2013 10:09:11 +0000 (11:09 +0100)]
tests: ignore new NV16 format in videoscale unit test

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

11 years agovideo: fix gst_video_format_from_masks() for little endian masks with alpha
Benjamin Gaignard [Thu, 16 May 2013 08:52:29 +0000 (10:52 +0200)]
video: fix gst_video_format_from_masks() for little endian masks with alpha

Need to byte-order swap the alpha mask as well in this case.

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

11 years agodmabuf: set the initial memory size to the full size
Michael Olbrich [Thu, 16 May 2013 07:07:46 +0000 (09:07 +0200)]
dmabuf: set the initial memory size to the full size

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

11 years agovideo: update disted orc backup files to fix build without liborc
Tim-Philipp Müller [Wed, 15 May 2013 17:20:50 +0000 (18:20 +0100)]
video: update disted orc backup files to fix build without liborc

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

11 years agoplayback: Only do a subset filtering for the factories if we have fixed caps
Sebastian Dröge [Wed, 15 May 2013 15:15:18 +0000 (17:15 +0200)]
playback: Only do a subset filtering for the factories if we have fixed caps

Otherwise we're plugging a parser/converter currently and have unfixed caps.

11 years agodecodebin: Return immediately from checking if a chain is complete if we're shutting...
Sebastian Dröge [Wed, 15 May 2013 12:51:16 +0000 (14:51 +0200)]
decodebin: Return immediately from checking if a chain is complete if we're shutting down

11 years agodecodebin: Hold the expose lock when freeing a chain
Sebastian Dröge [Wed, 15 May 2013 12:47:53 +0000 (14:47 +0200)]
decodebin: Hold the expose lock when freeing a chain

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

11 years agovideo: add NV16 format
Arnaud Vrac [Mon, 26 Nov 2012 15:37:22 +0000 (16:37 +0100)]
video: add NV16 format

This format is usually used by hardware video decoders for 4:2:2 sampling

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

11 years agoplaybin: Fix deadlock caused by lock order inversion
Sebastian Dröge [Wed, 15 May 2013 11:38:32 +0000 (13:38 +0200)]
playbin: Fix deadlock caused by lock order inversion

First the source group lock, then the elements list lock.

11 years agolibvisual: Update visualizer baseclass from gst-plugins-bad
Sebastian Dröge [Wed, 15 May 2013 09:03:58 +0000 (11:03 +0200)]
libvisual: Update visualizer baseclass from gst-plugins-bad

11 years agoAutomatic update of common submodule
Sebastian Dröge [Wed, 15 May 2013 08:51:24 +0000 (10:51 +0200)]
Automatic update of common submodule

From 5edcd85 to 098c0d7

11 years agoaudio-info: Always pass NULL as position parameter to gst_audio_info_set_format()
Sebastian Dröge [Wed, 15 May 2013 07:26:56 +0000 (09:26 +0200)]
audio-info: Always pass NULL as position parameter to gst_audio_info_set_format()

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

11 years agoplayback: Use subset checks instead of intersection
Sebastian Dröge [Tue, 14 May 2013 08:06:40 +0000 (10:06 +0200)]
playback: Use subset checks instead of intersection

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

11 years agortpbasepayload: Delay segment event after caps
Nicolas Dufresne [Sun, 12 May 2013 13:55:38 +0000 (09:55 -0400)]
rtpbasepayload: Delay segment event after caps

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

11 years agoaudio-info: For more than 64 channels don't allow a channel layout
Sebastian Dröge [Tue, 14 May 2013 07:34:21 +0000 (09:34 +0200)]
audio-info: For more than 64 channels don't allow a channel layout

More than 64 channels have all channels unpositioned.

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

11 years agotests: Fix event order and missing events
Sebastian Dröge [Fri, 10 May 2013 10:29:15 +0000 (12:29 +0200)]
tests: Fix event order and missing events

11 years agosubparse/ssaparse: Fix event handling and order
Sebastian Dröge [Fri, 10 May 2013 10:21:31 +0000 (12:21 +0200)]
subparse/ssaparse: Fix event handling and order

11 years agovorbisparse: Fix event handling
Sebastian Dröge [Fri, 10 May 2013 09:31:37 +0000 (11:31 +0200)]
vorbisparse: Fix event handling

Internal state should only be reset on FLUSH_STOP, not FLUSH_START.

Also forward pre-caps events immediately and don't queue them.

11 years agooggmux: Make sure to always set caps on the srcpad and always send a segment event
Sebastian Dröge [Fri, 10 May 2013 09:24:46 +0000 (11:24 +0200)]
oggmux: Make sure to always set caps on the srcpad and always send a segment event

Even if the srcpad is not linked at this point, it might be linked as result of
setting the caps.

11 years agooggmux: don't send a segment event before the caps event
Mathieu Duponchelle [Fri, 10 May 2013 07:28:52 +0000 (09:28 +0200)]
oggmux: don't send a segment event before the caps event

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

11 years agovideodecoder: don't set the list to NULL after taking its address
Mathieu Duponchelle [Thu, 9 May 2013 21:30:33 +0000 (23:30 +0200)]
videodecoder: don't set the list to NULL after taking its address

11 years agoplaybin-compressed: Fix unit test
Sebastian Dröge [Thu, 9 May 2013 16:02:57 +0000 (18:02 +0200)]
playbin-compressed: Fix unit test

11 years agovideorate: Reset base timestamp and out_frame_count in any case on SEGMENT_EVENT
Mathieu Duponchelle [Wed, 8 May 2013 18:31:00 +0000 (20:31 +0200)]
videorate: Reset base timestamp and out_frame_count in any case on SEGMENT_EVENT

Fixes #699187

11 years agovideoencoder: Make sure to push any pre-caps events before the caps are set
Sebastian Dröge [Thu, 9 May 2013 13:42:49 +0000 (15:42 +0200)]
videoencoder: Make sure to push any pre-caps events before the caps are set

11 years agovideodecoder: Make sure to not push any post-caps events before we have caps
Sebastian Dröge [Thu, 9 May 2013 13:34:10 +0000 (15:34 +0200)]
videodecoder: Make sure to not push any post-caps events before we have caps

and that we push pre-caps events before we push caps, even if we don't
have a GstVideoFrame yet.

11 years agoplaybin2: Chose more balanced metric to compare ranks of decoder/sink combinations
Sebastian Dröge [Thu, 9 May 2013 13:05:21 +0000 (15:05 +0200)]
playbin2: Chose more balanced metric to compare ranks of decoder/sink combinations

11 years agotheoradec: Set DECODE_ONLY flag on all header packets
Sebastian Dröge [Thu, 9 May 2013 08:40:19 +0000 (10:40 +0200)]
theoradec: Set DECODE_ONLY flag on all header packets

11 years agoRevert "videodecoder: If a frame is to be dropped, don't update timestamps"
Sebastian Dröge [Thu, 9 May 2013 08:37:06 +0000 (10:37 +0200)]
Revert "videodecoder: If a frame is to be dropped, don't update timestamps"

This reverts commit c9c5cd8eef499ba08e08898bda71183e39d570ea.

11 years agovideodecoder: If a frame is to be dropped, don't update timestamps
Sebastian Dröge [Thu, 9 May 2013 06:54:45 +0000 (08:54 +0200)]
videodecoder: If a frame is to be dropped, don't update timestamps

11 years agoplaybin: Fix infinite loop in GSequence iteration code
Sebastian Dröge [Wed, 8 May 2013 19:27:17 +0000 (21:27 +0200)]
playbin: Fix infinite loop in GSequence iteration code

11 years agoaudio: Make sure to push pre-caps events before the caps event
Sebastian Dröge [Wed, 8 May 2013 13:56:34 +0000 (15:56 +0200)]
audio: Make sure to push pre-caps events before the caps event

11 years agovideo: Make sure to push pre-caps events before the caps event
Sebastian Dröge [Wed, 8 May 2013 13:50:34 +0000 (15:50 +0200)]
video: Make sure to push pre-caps events before the caps event

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

11 years agouridecodebin: Always store queue2 elements for later removal
Sebastian Dröge [Wed, 8 May 2013 12:52:18 +0000 (14:52 +0200)]
uridecodebin: Always store queue2 elements for later removal

Otherwise we accumulate more and more queue2 elements, and let each
of them start a thread doing nothing but waiting each time uridecodebin
goes to PAUSED.

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

11 years agooggmux: The best pad can't be EOS
Mathieu Duponchelle [Mon, 6 May 2013 20:05:04 +0000 (22:05 +0200)]
oggmux: The best pad can't be EOS

The problem experienced is that the EOS was never emitted by oggmux during a
rendering with GES. The proposed patch checks if the pad is EOS before deciding
it's the "best pad".

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

11 years agotypefind: fix detection of HLS playlists with alternative renditions
Andoni Morales Alastruey [Sun, 16 Dec 2012 15:53:30 +0000 (16:53 +0100)]
typefind: fix detection of HLS playlists with alternative renditions

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

11 years agoplaybin: Use the GSequence more efficiently
Sebastian Dröge [Tue, 7 May 2013 12:42:05 +0000 (14:42 +0200)]
playbin: Use the GSequence more efficiently

This makes it possible to take advantage of the O(log n) lookups
of GSequence on the ~1000 element lists and only do iterations
on <10 element lists. Previously the code iterated over ~1000 element
lists multiple times.

11 years agoplaybin: Use GSequence instead of GList to store the GstAVElement list.
Sreerenj Balachandran [Wed, 1 May 2013 21:01:17 +0000 (00:01 +0300)]
playbin: Use GSequence instead of GList to store the GstAVElement list.

The GstAVElement list might be big. Use GSequence to optimize it.

11 years agoplaybin: autoplug the audio/video decoders and sinks based on capsfeatures.
Sreerenj Balachandran [Mon, 29 Apr 2013 19:17:53 +0000 (22:17 +0300)]
playbin: autoplug the audio/video decoders and sinks based on capsfeatures.

Autoplug the decoder elements and sink elements based on
the number of common capsfeatures if the ranks are the same.
This will also helps to autoplug the h/w_decoder and h/w_renderer.

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

11 years agoriff: Manually calculate bitrate of ADPCM streams
Julien Moutte [Tue, 7 May 2013 13:00:05 +0000 (15:00 +0200)]
riff: Manually calculate bitrate of ADPCM streams

Some ADPCM encoding tools like Oxelon generate WAV files with
wrong format header declaring an invalid bitrate.

As wavparse uses the average bitrate to calculate timestamps
and duration the decoder can be confused by receiving timestamps
completely out of sync with the decoded samples.

ADPCM is a CBR audio codec so we can calculate the average bitrate
instead of trusting the format header.

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

11 years agotheoraenc: Don't call gst_buffer_fill() for empty Theora packets
Sebastian Dröge [Tue, 7 May 2013 08:16:48 +0000 (10:16 +0200)]
theoraenc: Don't call gst_buffer_fill() for empty Theora packets

gst_buffer_fill() does not like a NULL source data pointer.

11 years agotheoraenc: Fix error handling when reading or writing multipass cache data fails
Sebastian Dröge [Tue, 7 May 2013 08:13:18 +0000 (10:13 +0200)]
theoraenc: Fix error handling when reading or writing multipass cache data fails

11 years agodecodebin: Expose pads when they receive EOS before any buffers
Sebastian Dröge [Mon, 6 May 2013 13:47:34 +0000 (15:47 +0200)]
decodebin: Expose pads when they receive EOS before any buffers

Stops decodebin from waiting forever to expose a pad if there
is never data on it.

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

11 years agoriff: wma can have more than 6 channels
Tim-Philipp Müller [Fri, 3 May 2013 15:24:55 +0000 (16:24 +0100)]
riff: wma can have more than 6 channels

Some versions anyway.

11 years agovorbis: Fix compilation after function rename
Sebastian Dröge [Fri, 3 May 2013 13:49:50 +0000 (15:49 +0200)]
vorbis: Fix compilation after function rename

11 years agovorbis: prefix get_copy_sample_func and fix duplicated symbols
Andoni Morales Alastruey [Fri, 3 May 2013 12:16:33 +0000 (14:16 +0200)]
vorbis: prefix get_copy_sample_func and fix duplicated symbols

11 years agoivorbisdec: fix duplicated symbols with vorbisdec
Andoni Morales Alastruey [Fri, 3 May 2013 12:13:18 +0000 (14:13 +0200)]
ivorbisdec: fix duplicated symbols with vorbisdec

11 years agodmabuf: don't touch the GstMemory size
Michael Olbrich [Fri, 3 May 2013 09:23:59 +0000 (11:23 +0200)]
dmabuf: don't touch the GstMemory size

mem.size is the content size and should not be touch.
Save the mmap size instead.

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

11 years agodmabuf: fix memory initialization
Michael Olbrich [Fri, 3 May 2013 09:12:04 +0000 (11:12 +0200)]
dmabuf: fix memory initialization

Without this the shared memory is broken

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

11 years agodmabuf: fix formating
Michael Olbrich [Fri, 3 May 2013 09:29:05 +0000 (11:29 +0200)]
dmabuf: fix formating

11 years agodmabuf: handle mmap failure
Michael Olbrich [Thu, 2 May 2013 13:37:14 +0000 (15:37 +0200)]
dmabuf: handle mmap failure

Otherwise gstreamer may segfault trying to access MAP_FAILED.

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

11 years agotextrender: actually fixate output caps when fixating output caps
Tim-Philipp Müller [Thu, 2 May 2013 22:41:02 +0000 (23:41 +0100)]
textrender: actually fixate output caps when fixating output caps

11 years agoogg: fix duplicated symbols with schroedinger
Andoni Morales Alastruey [Fri, 12 Apr 2013 19:01:53 +0000 (21:01 +0200)]
ogg: fix duplicated symbols with schroedinger

11 years agostreamsplitter: Keep srcpad alive while querying peer
Thibault Saunier [Tue, 30 Apr 2013 23:15:38 +0000 (00:15 +0100)]
streamsplitter: Keep srcpad alive while querying peer

11 years agoadder: Get collectpad stream lock when fowarding flush events
Thibault Saunier [Sun, 28 Apr 2013 18:07:47 +0000 (20:07 +0200)]
adder: Get collectpad stream lock when fowarding flush events

Fixes #698410

11 years agotypefindfunctions: minor SSA typefinder clean-up
Tim-Philipp Müller [Wed, 16 Jan 2013 09:50:16 +0000 (09:50 +0000)]
typefindfunctions: minor SSA typefinder clean-up

Remove code that doesn't make sense as it is. If there's
a 2-byte UTF-16 BOM or a 4-byte UTF-32 BOM, the following
text won't be 8-bit ASCII.

11 years agodocs: Drop missing gsttcp-enumtypes.h to fix build
Rico Tzschichholz [Fri, 26 Apr 2013 09:00:10 +0000 (11:00 +0200)]
docs: Drop missing gsttcp-enumtypes.h to fix build

In addition to 7f6e1bdfdb2aad1694c24d3887f30e00f0c4c2e3

11 years agosdp: use setter for the bandwidth
Wim Taymans [Fri, 26 Apr 2013 08:10:41 +0000 (10:10 +0200)]
sdp: use setter for the bandwidth

11 years agosdp: Store a copy of the bandwidth string
Sebastian Rasmussen [Thu, 25 Apr 2013 19:10:04 +0000 (21:10 +0200)]
sdp: Store a copy of the bandwidth string

Otherwise we will free a string later that does not belong to us.

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

11 years agodmabuf: Use the fallback GstMemory copy function instead of our own
Sebastian Dröge [Thu, 25 Apr 2013 15:04:50 +0000 (17:04 +0200)]
dmabuf: Use the fallback GstMemory copy function instead of our own

dup() on a dmabuf only gives a new handle, not a copy, thus doesn't
do what copy() is supposed to do.

11 years agovideoencoder: Try harder to push writable buffers downstream
Sebastian Dröge [Thu, 25 Apr 2013 14:23:14 +0000 (16:23 +0200)]
videoencoder: Try harder to push writable buffers downstream

For this release the corresponding GstVideoCodecFrame before
pushing the buffer. The buffer will now be writable unless
the subclass still holds another reference to the buffer or
the frame.

11 years agovideodecoder: Try harder to push writable buffers downstream
Sebastian Dröge [Thu, 25 Apr 2013 14:13:10 +0000 (16:13 +0200)]
videodecoder: Try harder to push writable buffers downstream

For this release the corresponding GstVideoCodecFrame before
pushing the buffer. The buffer will now be writable unless
the subclass still holds another reference to the buffer or
the frame.

11 years agotcp: Use the generic marshaller instead of generating custom ones
Sebastian Dröge [Thu, 25 Apr 2013 07:20:29 +0000 (09:20 +0200)]
tcp: Use the generic marshaller instead of generating custom ones

11 years agotcp: Add FIXME comment for 2.0 to rename "host" to "bind-address" for the server...
Sebastian Dröge [Thu, 25 Apr 2013 07:05:55 +0000 (09:05 +0200)]
tcp: Add FIXME comment for 2.0 to rename "host" to "bind-address" for the server elements

11 years agotests: add SDP modify test
Patricia Muscalu [Wed, 24 Apr 2013 12:13:43 +0000 (14:13 +0200)]
tests: add SDP modify test

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

11 years agotests: avoid sdp boxed test leak
Wim Taymans [Wed, 24 Apr 2013 12:12:41 +0000 (14:12 +0200)]
tests: avoid sdp boxed test leak

11 years agosdp: don't leak the temp buffer
Wim Taymans [Wed, 24 Apr 2013 12:12:20 +0000 (14:12 +0200)]
sdp: don't leak the temp buffer

11 years agosdp: NULL terminate the time array
Wim Taymans [Wed, 24 Apr 2013 12:11:49 +0000 (14:11 +0200)]
sdp: NULL terminate the time array

11 years agodocs: add new sdp methods to docs
Wim Taymans [Wed, 24 Apr 2013 11:57:23 +0000 (13:57 +0200)]
docs: add new sdp methods to docs

11 years agodef: update with new sdp symbols
Wim Taymans [Wed, 24 Apr 2013 11:50:54 +0000 (13:50 +0200)]
def: update with new sdp symbols

11 years agosdp: add more functions to modify the sdp message
Wim Taymans [Tue, 23 Apr 2013 13:23:05 +0000 (15:23 +0200)]
sdp: add more functions to modify the sdp message

Add functions to insert, replace and remove various sdp message fields
and structures.

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

11 years agostreamsynchronizer: Fix check for belonging to another stream
Sebastian Dröge [Wed, 24 Apr 2013 09:10:34 +0000 (11:10 +0200)]
streamsynchronizer: Fix check for belonging to another stream

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

11 years agostreamsynchronizer: Create element with gst_element_factory_make()
Sebastian Dröge [Wed, 24 Apr 2013 09:07:30 +0000 (11:07 +0200)]
streamsynchronizer: Create element with gst_element_factory_make()

Otherwise plugin_init() is not called and initialization is missing.

11 years agotypefindfunctions: fix crash in new MSS typefinder
Tim-Philipp Müller [Tue, 23 Apr 2013 23:08:15 +0000 (00:08 +0100)]
typefindfunctions: fix crash in new MSS typefinder

Fixes icydemux test_first_buf_offset_when_merged_for_typefinding
unit test segfaulting on a NULL pointer.

11 years agodecodebin2: also remove the bytes limit
Wim Taymans [Wed, 6 Mar 2013 15:44:45 +0000 (16:44 +0100)]
decodebin2: also remove the bytes limit

Remove the byte limit for adaptive http streaming. Because some fragments might
be very big, we might need a lot of buffering. I also suspect another problem
where data is actually missing and things go out of sync somehow.

11 years agodecodebin2: update buffer size in multiqueue
Wim Taymans [Mon, 4 Mar 2013 15:19:18 +0000 (16:19 +0100)]
decodebin2: update buffer size in multiqueue

When we disable buffering in the more upstream multiqueue elements,
we need to also update the queue limits. In particular, the max_size_time should
be set to 0 or else we might simply deadlock.

11 years agodecodebin2: only allow 'lower' multiqueues to emit buffering messages
Thiago Santos [Wed, 6 Feb 2013 11:41:19 +0000 (08:41 -0300)]
decodebin2: only allow 'lower' multiqueues to emit buffering messages

When we have a scenario of demuxers linked to demuxers, decodebin2
will create multiqueue at different levels of the pipeline. The problem
is that only the lowest multiqueue's should do the buffering messaging,
as they will handle with the raw streams data.

When all multiqueues are doing buffering, the upper ones can handle
large buffers that easily fill them, moving from 0% to 100% from
buffer to buffer, causing too much buffering messages to be posted.
This hangs the pipeline unnecessarily and might lead to deadlocks.

11 years agodecodebin2: do not handle the next-groups list as if it was a single item
Thiago Santos [Wed, 6 Feb 2013 14:09:52 +0000 (11:09 -0300)]
decodebin2: do not handle the next-groups list as if it was a single item

Decodebin2's chains store a next_groups list that was being handled as
it could only have a single element. This is true for most of the
chaining streams scenarios where streams change not very often.

In more stressfull changing scenarios, like adaptive streams, those
changes can happen very often, and in short time intervals. This could
confuse decodebin2 as this list was always being used as a single
element list.

This patches makes it handle as a real list, using iteration instead
of picking the first element as the correct one always.

11 years agodecodebin2: preserve next groups order
Thiago Santos [Fri, 1 Feb 2013 20:50:36 +0000 (17:50 -0300)]
decodebin2: preserve next groups order

11 years agodecodebin2: still report chain as drained when not 'handled'
Thiago Santos [Wed, 9 Jan 2013 21:39:49 +0000 (18:39 -0300)]
decodebin2: still report chain as drained when not 'handled'

Even if the chain hasn't been 'handled' in this switching round,
report it as drained so upper chains/groups know abou it.

This makes switching happen on upper levels of the groups/chain
trees

11 years agotypefind: add smoothstreaming manifest typefinding
Thiago Santos [Thu, 11 Apr 2013 12:47:51 +0000 (09:47 -0300)]
typefind: add smoothstreaming manifest typefinding

Checks if the received XML is a smoothstreaming manifest
in both UTF8 and UTF16 formats. The check is made for a
SmoothStreamingMedia top level element.

Conflicts:
gst/typefind/gsttypefindfunctions.c

11 years agostreamsynchronizer: Don't consider a stream added for an already running one as ...
Sebastian Dröge [Tue, 23 Apr 2013 11:54:49 +0000 (13:54 +0200)]
streamsynchronizer: Don't consider a stream added for an already running one as "new"

Fixes enabling visualizations after disabling them after they were enabled already.

11 years agostreamsynchronizer: If a stream belongs to an already running stream, don't wait
Sebastian Dröge [Tue, 23 Apr 2013 11:18:45 +0000 (13:18 +0200)]
streamsynchronizer: If a stream belongs to an already running stream, don't wait

This fixes enabling visualizations after the audio stream already started.

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

11 years agoAutomatic update of common submodule
Tim-Philipp Müller [Mon, 22 Apr 2013 22:51:08 +0000 (23:51 +0100)]
Automatic update of common submodule

From 3cb3d3c to 5edcd85

11 years agoUpdate disted orc backup files
Tim-Philipp Müller [Sun, 21 Apr 2013 18:02:42 +0000 (19:02 +0100)]
Update disted orc backup files

Generated with 0.4.17 now.

11 years agouridecodebin: don't report 'no uri handler found' if the URI was rejected by a source
Tim-Philipp Müller [Sun, 21 Apr 2013 16:24:55 +0000 (17:24 +0100)]
uridecodebin: don't report 'no uri handler found' if the URI was rejected by a source

If a source element could be created for a URI, but all elements rejected
the URI for some reason, propagate the error from the URI handler instead
of reporting a 'no uri handler found for protocol xyz' error, which is
confusing. Fixes error reporting with dvb:// URIs when the channel config
file could not be found or not be parsed or the channel isn't listed.

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

11 years agoadder: Do not try to wait for flush_stop after receiving a segment event
Thibault Saunier [Fri, 19 Apr 2013 20:59:56 +0000 (17:59 -0300)]
adder: Do not try to wait for flush_stop after receiving a segment event

  + Add a simple test

11 years agovolume: skip controlled processing if we have no timestamp
Stefan Sauer [Thu, 18 Apr 2013 05:55:56 +0000 (07:55 +0200)]
volume: skip controlled processing if we have no timestamp

11 years agoplaybin: use _plugin_feature_rank_compare API instead of duplicating the code.
Sreerenj Balachandran [Thu, 18 Apr 2013 09:07:37 +0000 (12:07 +0300)]
playbin: use _plugin_feature_rank_compare API instead of duplicating the code.

11 years agodecodebin: use _plugin_feature_rank_compare API instead of duplicating the code.
Sreerenj Balachandran [Thu, 18 Apr 2013 09:03:29 +0000 (12:03 +0300)]
decodebin: use _plugin_feature_rank_compare API instead of duplicating the code.

11 years agovideoencoder: Simply setcaps function
Sebastian Dröge [Thu, 18 Apr 2013 07:58:09 +0000 (09:58 +0200)]
videoencoder: Simply setcaps function