Tim-Philipp Müller
04a860c6f7
typefinding: make flac typefinder return lower probability for frame headers
...
The flac frame header typefinder overstates the likelihood of a match, leading
to false positives with e.g. aac streams and PDF files. Reduce probabilty
returned from LIKELY to POSSIBLE for the frame header matchin code.
Fixes #574939 .
2009-03-15 19:57:36 +00:00
Tim-Philipp Müller
a622ff74b0
typefinding: improve image/bmp typefinder
...
Detect more variations and also bail out in more cases where the values
don't make sense. Furthermore, add width/height and bpp to the caps,
because we can.
2009-03-15 19:52:46 +00:00
Wim Taymans
777f8ab1bf
playbin2: fix raw elements like cdda://
...
Fix a fixme with a one liner and make cd playback work again.
2009-03-12 18:27:25 +01:00
Wim Taymans
7849db42b8
playbin2: improve subtitle handling
...
Add property to playbin2 to configure a custom sink that receives the raw
subtitle buffers instead of using a textoverlay.
Improve the property finding code to make it more usable.
Use property find code to find async properties in custom sinks that are bins.
Improve text overlay code to gracefully handle missing elements.
2009-03-12 17:51:39 +01:00
Tim-Philipp Müller
4cbe4d2c72
typefinding: flac typefinder fixes
...
Use scan context for initial peek as well. Peek 6 bytes in the initial
peek rather than 5 bytes, to match the length of the memcmp we're doing
on that data later. Return immediately when we found caps from looking
at the beginning of the data - no point in continuing to scan the next
64kB for something matching a frame header.
2009-03-11 13:33:33 +00:00
Stefan Kost
e633c46e95
adder: log details in getcaps like in setcaps
2009-03-10 21:14:43 +02:00
Jonathan Matthew
db7ecda64f
typefind: add photoshop typefind functions
...
Add photoshop typefind functions.
Fixes #574516 .
2009-03-09 16:19:40 +01:00
Wim Taymans
72533ecccc
decodebin2: only remove pads that were added
...
Flag pads that were added so that we can see if we need to remove them later or
not.
2009-03-09 15:46:21 +01:00
Mark Nauwelaerts
b7ea2a9105
Unblock blocked ghostpads when shutting down. Fixes #574293 .
2009-03-09 13:32:21 +01:00
Edward Hervey
9acf7de5a4
typefind: Use the proper data pointer instead of poking random memory.
2009-03-09 09:08:00 +01:00
Michael Smith
e9e9d82fbe
decodebin2: don't stay connected to notify::caps after negotiation
...
Disconnect the notify::caps signal in our callback (it'll be re-added
if we're not, in fact, finished getting complete caps). Ensures that
caps changes mid-stream (e.g. from an mp3 that changes from
stereo->mono mid-file) don't cause us to try to add a new pad.
2009-03-05 15:44:17 -08:00
Stefan Kost
79771eaba7
adder: add variants for unsigned to fix warnings for unneeded check
...
For unsigned int out+in can't be < 0.
2009-03-05 12:27:16 +02:00
Stefan Kost
2723c7e4f3
subparse: use the right variable in debug log, encoding is not yet initialized
2009-03-05 10:58:12 +02:00
Stefan Kost
388fa77c11
audioresample: add missing break in event handling, remove dead code
2009-03-05 10:39:33 +02:00
LRN
db596d27a2
subparse: Convert regex code to GRegex code
...
Fixes : #572993 . Patch author prefers to use an alias, contact
ds if you actually need a real name.
Signed-off-by: David Schleef <ds@schleef.org>
2009-03-02 11:47:39 -08:00
Stefan Kost
46833b9bc7
subparse: don't leak line, if flushing
2009-02-26 18:01:05 +02:00
Stefan Kost
60847e48d7
ffmpegcolorspace: remove unused code/variables
2009-02-26 18:01:04 +02:00
Stefan Kost
5e6447c0ac
docs: fix random text after since: tag. Also fix class name to make the docs actual appear.
2009-02-26 10:10:00 +02:00
Stefan Kost
a6ea8280a2
docs: playbin2 has no stream-info
2009-02-26 10:09:59 +02:00
Peter Kjellerstedt
a038a8d46d
rtsp, multifdsink: Unify the use of union gst_sockaddr.
2009-02-25 15:45:50 +01:00
Wim Taymans
f5a3387bdb
playbin: use flushing pads instead of fakesink
...
Use the flushing pads on playsink to terminate on shutdown instead of plugging
fakesinks. this should be a little cheaper.
2009-02-25 12:48:53 +01:00
Wim Taymans
747841e97c
playsink: Add FLUSHING pad type
...
Make it possible to request a flushing pad from the playsink. We can eventually
use these flushing pads to quickly terminate the dataflow when we are shutting
down.
2009-02-25 12:48:53 +01:00
Wim Taymans
dbfc80cd6c
Release the group lock when setting states
...
Release the group lock while we perform the state changes on the uridecodebins
because that might trigger callbacks that we need to handle with the group lock
taken. Avoids a possible deadly embrace in some id3/flac files.
Fixes #567396 .
2009-02-25 10:08:29 +01:00
Wim Taymans
0b2238b70b
Combine finding and creating groups
...
Combine the search for the current group and optionally creating one into one
function so that we can avoid taking the lock multiple times.
2009-02-25 10:05:38 +01:00
Edward Hervey
2968cc8710
Playbin2: Don't leave unused parameters in debug statements.
...
Fixes build on macosx
2009-02-25 08:22:00 +01:00
Wim Taymans
b725e1d2c6
Add some G_UNLIKELY because we can
...
Add a G_UNLIKELY when checking the shutdown variable.
2009-02-24 18:44:54 +01:00
Jan Schmidt
fff6909c1b
multifdsink: Fix strict aliasing error using a union
2009-02-24 17:03:08 +00:00
Sebastian Dröge
77a56d5975
ffmpegcolorspace: Add conversion from/to YVYU colorspace
...
Fixes bug #572872 .
2009-02-24 14:06:38 +01:00
Jonas Danielsson
0842dd1c6f
ffmpegcolorspace: Add direct UYVY->GRAY8 conversion
...
The conversion from UYVY to RGB24 and then to GRAY8
is quite slow. Fixes bug #569655 .
2009-02-24 13:42:01 +01:00
Mark Nauwelaerts
d24e75f9fa
playbin2: fix deadlock when shutting down. Fixes #572577 .
2009-02-24 13:30:07 +01:00
Mark Nauwelaerts
bbd66c6baf
playbin2/playsink: Set audiotee to PAUSED state in all cases. Fixes #565105 .
2009-02-24 10:46:35 +01:00
Sebastian Dröge
6c28744f76
audioresample: Add locking to protect the resampling context
...
When setting the quality/filter-length while PLAYING the
resampling context will be destroyed and created again in
some cases, which will cause crashes in the transform function
if it's called at that time.
2009-02-15 07:30:17 +01:00
Sebastian Dröge
c080bfae6d
ffmpegcolorspace/videotestsrc: Use v308 instead of V308
2009-02-13 10:10:25 +01:00
Sebastian Dröge
65c322edf2
ffmpegcolorspace: Add support for packed 4:4:4 YUV (format=V308)
...
Only conversions from/to are implemented, which
gives (indirect) support for all possible conversions.
Partially fixes bug #571147 .
2009-02-12 19:09:40 +01:00
Sebastian Dröge
79d0fff231
videotestsrc: Add support for packed 4:4:4 YUV (format=V308)
...
Partially fixes bug #571147 .
2009-02-12 19:09:40 +01:00
Michael Smith
4713bb3abc
Revert "Remove pad-removed handlers after setting the decodebins to NULL."
...
This reverts commit b36d8f3e11
.
This brought back some deadlocks. A small leak is better, for now. Need to
figure out a way to fix the leak properly.
2009-02-10 20:38:58 -08:00
Michael Smith
41314315c7
playbin2: Fix segfault on notify after group change.
...
If our group has been switched, then we get a selector active-pad
notification, we don't need to notify.
2009-02-10 17:20:12 -08:00
Michael Smith
a264efc627
playbin2: Look for volume/mute properties recursively in audio element.
...
Rather than only checking for volume property on the audio sink
directly, recursively look for it on sinks within it (if it's a bin).
Allows use of sink-as-volume-control where the application has supplied
an audio-sink bin that includes a real audio sink internally.
2009-02-10 17:20:12 -08:00
Sebastian Dröge
5fc20b9ec5
videotestsrc: Add support for Y444 (planar 4:4:4 YUV)
...
Partially fixes bug #571147 .
2009-02-10 17:45:59 +01:00
Stefan Kost
f010a38b0d
playbin2: implement GST_PLAY_FLAG_NATIVE_{AUDIO,VIDEO}
...
The flags where present but actually not been taken into account.
2009-02-04 13:56:14 +02:00
Stefan Kost
c6ab453eed
audioresample: Add a proper deprecation comment and also drop G_PARAM_CONSTRUCT.
...
The comment will ensure that is is marked properly in the docs and the
GParamSpecflag was causing a duplicated initialisation of the same value.
2009-02-04 13:56:13 +02:00
Stefan Kost
b08c0a9003
audioresample: Only pull in liboil if its actualy used.
...
Liboil still has quite significant startup overhead especialy on embedded
platforms. In audioresample it was only used for the profiling timer.
2009-02-04 10:31:21 +02:00
Stefan Kost
080493ccff
typefind: Make the flac check more tight to not mistace some aac files for flac. Fixes #570356 .
...
Add comments about the flac format. Tighten the check to not allow values that
refer to headers.
2009-02-03 15:28:50 +02:00
Stefan Kost
0ea2afee42
Allow to configure the resampler function for integer to skip the benchmarking. Fix releasing the intger resampler in benchmark.
2009-02-02 15:45:44 +02:00
Wim Taymans
9996aab207
Fix documentation for autoplug-select
...
fix the documentation strings for the autoplug-select signal.
Fixes #570142 .
2009-02-02 12:54:31 +01:00
Michael Smith
b36d8f3e11
Remove pad-removed handlers after setting the decodebins to NULL.
...
They do needed cleanup; without this we leak selector requestpads.
2009-01-30 18:30:10 -08:00
Michael Smith
61e81ada2c
Unref selector request pad even if we no longer have a selector.
...
During destruction, we won't have a selector any more, but we still need
to unref the pad to avoid leaking it.
2009-01-30 18:30:10 -08:00
Michael Smith
c799f3f77f
Unref source in playbin2's finalize method
2009-01-30 18:30:10 -08:00
Michael Smith
b6cbe7e331
Fix more leaks of pads and elements in gstplaysink.
...
Don't keep extra references to volume and mute elements; we don't need
to do so.
Ensure we unref pads that we have references to, and release request
pads.
2009-01-30 18:30:10 -08:00
Michael Smith
c34f444174
Avoid leaking all playsinks. Fix some internal leaks.
...
Playsink was holding references to itself. Don't do that, it's not cool.
Also, free all chains in dispose.
2009-01-30 18:30:10 -08:00