Matthieu Bouron
98e0dec715
playback: add ANY caps features to default audio/video raw caps
...
Allows elements using audio/video caps features to be used by playbin.
2013-12-30 11:25:49 +01:00
Tim-Philipp Müller
b1ff48c1a1
docs: remove old 0.10 Since markers
...
They're just confusing.
2013-11-16 16:10:07 +00:00
Thiago Santos
f8d8a56d7b
playbin: make sure elements are in null before disposing
...
If a pipeline fails to preroll, it might happen that the sinks are
put into READY state from playbin's sink activation, but they are never
set to playsink, so they aren't being managed by a GstBin and will keep
their READY state until they are unreffed, leading to a warning.
Prevent this by always forcing them to NULL when deactivating a group
https://bugzilla.gnome.org/show_bug.cgi?id=708789
2013-10-01 17:53:05 -03:00
Sebastian Dröge
cac572ec5d
playbin: Make sure to cache context types we did not store yet
...
https://bugzilla.gnome.org/show_bug.cgi?id=708668
2013-09-24 12:47:26 +02:00
Sebastian Dröge
78b0e16773
playbin: Implement context caching for sinks that are not in playsink yet
2013-09-18 22:39:25 +02:00
Sebastian Dröge
e21d3d214a
playbin: No need to set the GstContext on the sink before activating it
...
This is all handled by the GstBin code now.
2013-09-18 22:39:25 +02:00
Loïc Minier
8492b956cd
playback: fix docs of convert-sample action signal
...
convert-sample returns a GstSample, not a GstBuffer.
https://bugzilla.gnome.org/show_bug.cgi?id=707660
2013-09-07 14:58:46 +01:00
Arnaud Vrac
a8df760c96
playbin: check for tags on the right combiner instance
...
The get-tags actions are not working in all cases, because the track
number is used to resolve the stream combiner instead of the stream
type.
https://bugzilla.gnome.org/show_bug.cgi?id=705369
2013-08-03 17:17:10 +01:00
Sebastian Dröge
f92da706fd
playbin: Ensure that everything in a GstSourceGroup gets the same group-id
...
Including streams from external subtitle files. If not everything implements
the group-ids playbin invents its own.
2013-07-23 12:42:50 +02:00
Sebastian Dröge
432b092247
playbin: Don't prefer decoders for which we found a matching sink
...
It doesn't make much sense.
2013-07-16 12:21:44 +02:00
Sebastian Dröge
4cfda00120
playbin: Also consider possible converters for raw streams when selecting compatible sink/source combinations
...
https://bugzilla.gnome.org/show_bug.cgi?id=704285
2013-07-16 11:22:35 +02:00
Sebastian Dröge
5ee98c146e
playbin: Fix sorting for decoder factories for which we didn't find a compatible sink
...
They might just need some converters for raw audio/video.
https://bugzilla.gnome.org/show_bug.cgi?id=704285
2013-07-16 09:32:31 +02:00
Sebastian Dröge
10c91ea5b5
playbin: Don't print a warning when setting a sink to NULL
...
https://bugzilla.gnome.org/show_bug.cgi?id=704194
2013-07-15 09:10:30 +02:00
Sebastian Dröge
edecd7eec3
playbin: Properly destroy and set to NULL sinks that don't work
2013-07-12 12:05:37 +02:00
Alban Browaeys
f174c450c9
playbin: Fix logic to detect if a stream-change is currently pending
...
Fixes duration reporting in gapless playback between files.
https://bugzilla.gnome.org/show_bug.cgi?id=585969
2013-07-12 09:54:06 +02:00
Sebastian Dröge
9ab6ab4257
playbin: Only give sinks a new bus if they have no parent yet
...
Otherwise we will remove the bus that would proxy messages to playsink
and never set it again. If the sink is already in playsink, all failures
are fatal anyway as it's either a sink that worked before or one that
was set by the user.
https://bugzilla.gnome.org/show_bug.cgi?id=701997
2013-07-10 17:17:05 +02:00
Sebastian Dröge
d7f1d9954f
playbin: Store a/v/t sinks locally too, not just in playsink
2013-07-10 13:22:04 +02:00
Sebastian Dröge
f68b6c2626
playbin: Change sink ownership handling to be a bit more sane
...
playbin will now only activate the sinks in a single place and
will never change the states of any sinks that are owned by
playsink.
Also handle text-sinks the same way as audio/video sinks inside
playbin.
2013-07-09 14:57:05 +02:00
Sebastian Dröge
7c28c180ec
playbin: If we had a previous autoplugged sink, try to reuse it
...
https://bugzilla.gnome.org/show_bug.cgi?id=701997
2013-07-02 14:25:28 +02:00
Sebastian Dröge
841d738f7c
playbin: Don't change the state of sinks that we passed to playsink already
2013-07-02 14:02:57 +02:00
Sebastian Dröge
a0e61534ef
playbin: Improve debug output regarding sink selection
2013-07-02 12:27:03 +02:00
Brendan Long
d3acb2b01a
playbin: Post an error message if a stream combiner doesn't return a request pad.
2013-07-02 09:34:19 +02:00
Sebastian Dröge
f39d1dc3b4
playbin: Only intersect to check if a sink can handle raw caps
...
Doing a subset check requires fixed caps, which we might not have here.
https://bugs.webkit.org/show_bug.cgi?id=116042
2013-07-01 13:46:51 +02:00
Brendan Long
b5f7a621bb
playbin: Emit {audio,text,video}-changed signals when pads are removed
...
https://bugzilla.gnome.org/show_bug.cgi?id=702195
2013-06-14 14:23:11 +02:00
Sebastian Dröge
4465741222
playbin: When activating a fixed sink, proxy error messages too
...
If activating a fixed sink fails, everything will fail later anyway
and we can just error out early.
2013-06-08 23:51:13 +02:00
Sebastian Dröge
44352deadb
playbin: Improve autoplugging of decoder/sink combinations by trying to activate the sink
...
And if that fails don't bother autoplugging that sink. Also gives
us more accurate sink caps.
2013-06-08 23:34:53 +02:00
Sebastian Dröge
ff8839d97b
playbin: Proxy the playbin context to the sinks
2013-06-08 23:22:54 +02:00
Sebastian Dröge
77af24c493
playbin: Proxy sink messages if we activate a sink in playbin already
...
This makes sure the application gets any context related messages and
can do whatever is required to a) get the sink a context or b) share
the context with other elements in the pipeline.
The proxying is necessary because the sink is not a child element of
playbin, but instead will at a later point be a child of some bin
inside playsink.
https://bugzilla.gnome.org/show_bug.cgi?id=700967
2013-06-08 23:22:54 +02:00
Brendan Long
96aab6d8a5
playbin: Don't take an extra reference to the custom stream combiners
...
They are automatically reffed when added to the bin because they're
already not floating anymore.
2013-05-29 20:12:48 +02:00
Sebastian Dröge
0dee7777ff
playbin: Set custom stream-combiners to NULL and unref before finalizing
2013-05-29 10:35:11 +02:00
Brendan Long
53caa99a59
playbin: Rename select to combine and selector to combiner in playbin
2013-05-29 09:53:34 +02:00
Brendan Long
ba5f6cfe72
playbin: Add support for custom stream-combiners
...
This allows to chose something else than input-selector
for multiple audio/video/text streams, e.g. an adder could
be used for audio.
It is needed for example to implement some of the more
advanced HTML5 video features.
https://bugzilla.gnome.org/show_bug.cgi?id=698851
2013-05-29 09:52:32 +02:00
Sebastian Dröge
e482b5b8e6
playbin: In autoplug-queries, add the actual decoder/parser/etc template caps
...
Add the actual decoder/parser/etc caps at the very end to
make sure we don't cause empty caps to be returned, e.g.
if a parser asks us but a decoder is required after it
because no sink can handle the format directly.
2013-05-28 13:23:40 +02:00
Sebastian Dröge
a4ec6fe0b7
playbin: Forward CONTEXT queries to the corresponding sink if we have one
...
https://bugzilla.gnome.org/show_bug.cgi?id=700967
2013-05-28 13:14:15 +02:00
Sebastian Dröge
e5064ee723
playbin: Refactor autoplug-query handling
...
We now only check sinks and factories of the corresponding media
type. It doesn't make sense to pass audio/subtitle caps to a video
decoder.
2013-05-28 13:08:00 +02:00
Sebastian Dröge
9513b770f4
decodebin: Pass the element in the autoplug-query signal too
2013-05-28 12:10:33 +02:00
Sebastian Dröge
db8d53bc17
playbin: Refactor autoplug-query handling a bit
2013-05-28 11:05:21 +02:00
Sebastian Dröge
d802c7395a
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.
2013-05-15 17:15:18 +02:00
Sebastian Dröge
74a31a02fc
playbin: Fix deadlock caused by lock order inversion
...
First the source group lock, then the elements list lock.
2013-05-15 13:38:32 +02:00
Sebastian Dröge
450a47c0a5
playback: Use subset checks instead of intersection
...
https://bugzilla.gnome.org/show_bug.cgi?id=700272
2013-05-14 10:07:44 +02:00
Sebastian Dröge
b0ec886cb9
playbin2: Chose more balanced metric to compare ranks of decoder/sink combinations
2013-05-09 15:05:21 +02:00
Sebastian Dröge
b23f4e4ab9
playbin: Fix infinite loop in GSequence iteration code
2013-05-08 21:27:17 +02:00
Sebastian Dröge
7ff4f8f4d4
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.
2013-05-07 15:23:05 +02:00
Sreerenj Balachandran
52c5115ff0
playbin: Use GSequence instead of GList to store the GstAVElement list.
...
The GstAVElement list might be big. Use GSequence to optimize it.
2013-05-07 15:23:05 +02:00
Sreerenj Balachandran
a8d1b45491
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
2013-05-07 15:23:05 +02:00
Sreerenj Balachandran
9c94a1812f
playbin: use _plugin_feature_rank_compare API instead of duplicating the code.
2013-04-18 13:59:52 +02:00
Sreerenj Balachandran
9b33c75cd4
playbin: use ascending order for name based sorting of pluginfeatures.
...
The compare_factories_func() should return negative value
if the rank of both PluginFeatures are equal and the name of
first PluginFeature comes before the second one (== ascending order).
2013-04-15 12:05:22 +02:00
Tim-Philipp Müller
1c0288db38
playbin: fix jpeg passthrough to decoder sinks by marking image/* as video stream
2013-04-12 11:51:30 +01:00
Sebastian Dröge
7f78f7f9e3
playbin: Ignore caps from audio/video sink factories if there are fixed sinks already
2013-03-30 12:15:38 +01:00
Sebastian Dröge
57a0806b3a
playbin: Handle caps queries from unlinked elements
...
Pass them to all possible sinks and the current sinks to
allow elements to chose a more optimal initial caps.
2013-03-30 11:49:42 +01:00