Mark Nauwelaerts
3e9d5c4bf8
baseparse: update some documentation
...
Also add some more debug.
2011-01-28 12:16:57 +01:00
Mark Nauwelaerts
829507b650
baseparse: allow increasing min_size for current frame parsing only
...
Also check that subclass actually either directs to skip bytes or
increases expected frame size to avoid going nowhere in bogus
indefinite looping.
2011-01-28 12:16:57 +01:00
Mark Nauwelaerts
18b69e9320
baesparse: fix refactor regression in loop based parsing
2011-01-28 12:16:57 +01:00
Mark Nauwelaerts
f4f7306e37
baseparse: pass all available data to subclass rather than minimum
...
Also reduce some adapter calls and add a few debug statements.
2011-01-28 12:16:57 +01:00
Mark Nauwelaerts
e54e2a9616
baseparse: fix reverse playback handling
2011-01-28 12:16:56 +01:00
Mark Nauwelaerts
695c9599f4
baseparse: minor typo and debug statement cleanup
2011-01-28 12:16:56 +01:00
Mark Nauwelaerts
fcd0f5cb7a
baseparse: reduce locking
...
... which is either already mute and/or implicitly handled by STREAM_LOCK.
2011-01-28 12:16:56 +01:00
Mark Nauwelaerts
3da135ce02
baseparse: avoid loop in frame locating interpolation
2011-01-26 17:16:49 +01:00
Mark Nauwelaerts
289cd65abd
flacparse: mind gst_buffer_unref not liking NULL
...
Fixes #639950 .
2011-01-19 18:41:59 +01:00
Thiago Santos
a6a982e8be
audioparsers: baseparse: Be careful to not lose the event ref
...
Don't unref the event if it hasn't been handled, because the caller
assumes it is still valid and might reuse it.
I ran into this problem when transcoding an AVI (with mp3 inside)
to gpp.
https://bugzilla.gnome.org/show_bug.cgi?id=639555
2011-01-15 13:48:26 -03:00
Tim-Philipp Müller
aba0899b19
dcaparse: fix sync word for 14-bit little endian coding
...
Fix copy'n'paste bug that made us look for the raw little endian
sync word twice instead of looking for the 14-bit LE sync word
as well. Fixes parsing of such streams (see #636234 for sample file).
2011-01-13 17:10:13 +00:00
Tim-Philipp Müller
095eaa1752
docs: minor baseparse docs/comment fixes
...
Remove copy'n'paste leftovers.
2011-01-13 16:28:24 +00:00
Edward Hervey
063be2f972
flacparse: Fix unitialized variable on macosx
2011-01-06 12:49:43 +01:00
Mark Nauwelaerts
01e9b677a8
ac3parse: relax bsid checking
...
... to the widest possible spec interpretation.
Fixes #637062 .
2010-12-13 15:29:33 +01:00
Mark Nauwelaerts
f64f03264f
audioparsers: update some documentation
2010-12-03 18:23:20 +01:00
Mark Nauwelaerts
8f0e2346c7
mpegaudioparse: add to documentation
2010-12-03 18:23:17 +01:00
Mark Nauwelaerts
fa0dea3fdc
dcaparse: add to documentation
2010-12-03 18:23:14 +01:00
Mark Nauwelaerts
26feb26fc1
baseparse: increase keyframe awareness
...
... which is not particular relevant for audio parsing, but more so
in video cases. In particular, auto-determine if dealing with video (caps).
2010-12-03 18:23:06 +01:00
Mark Nauwelaerts
ce6d8b6d93
ac3parse: use proper EAC-3 caps
2010-12-01 15:29:55 +01:00
Mark Nauwelaerts
aa93b5b458
baseparse: avoid unexpected stray metadata
2010-11-30 16:23:26 +01:00
Mark Nauwelaerts
145e041af5
baseparse: use proper _NONE output value when applicable
2010-11-30 16:23:24 +01:00
Edward Hervey
15cd318ada
audioparsers: Remove dead assignments
2010-11-25 18:56:42 +01:00
Andoni Morales Alastruey
bc3917bb04
audioparse: fix possible division-by-zero
...
https://bugzilla.gnome.org/show_bug.cgi?id=635786
2010-11-25 17:28:16 +01:00
Mark Nauwelaerts
68dca2e704
baseparse: use correct offset when adding index entry
...
... bearing in mind that BUFFER_OFFSET is media specific and may not
reflect the basic offset after having been parsed.
2010-11-17 16:24:13 +01:00
Mark Nauwelaerts
9b6439a36c
baseparse: enhancements for timestamp marked framed formats
...
That is, as such formats allow subclass to extract position from frame,
it is possible to extract duration (if not otherwise provided)
from (near) last frame, and a seek can fairly accurately target the required
position.
Fixes #631389 .
2010-11-17 15:36:41 +01:00
Mark Nauwelaerts
08cab00b8b
baseparse: refactor frame scanning peformed by _loop
2010-11-17 15:36:38 +01:00
Mark Nauwelaerts
587106f1cf
baseparse: slightly optimize sending of pending newsegment events
2010-11-17 15:36:36 +01:00
Mark Nauwelaerts
f82f330537
baseparse: minor fixes and enhancements
...
Arrange for upstream as well as downstream flushing when seeking.
Also determine upstream size as well as seekability. Adjust some comments
to reality and employ debug statement in proper order.
2010-11-17 15:36:23 +01:00
Mark Nauwelaerts
b65da8e775
aacparse: minor cleanups
2010-11-17 15:36:20 +01:00
Mark Nauwelaerts
0fdc68cd46
aacparse: fix regression in ADIF src caps setting
2010-11-17 15:36:18 +01:00
Mark Nauwelaerts
36cbbd94c6
flacparse: parse seektable
...
Fixes #631389 (partially).
2010-11-17 15:36:02 +01:00
Mark Nauwelaerts
551f9707fa
flacparse: minor refactor and enable default baseparse segment clipping
2010-11-17 15:35:59 +01:00
Mark Nauwelaerts
896c4b71af
mpegaudioparse: fix silly leak in _reset
2010-11-09 20:52:10 +01:00
Mark Nauwelaerts
ba35b17b98
baseparse: use only upstream duration if it provides one
2010-10-29 14:11:47 +02:00
Mark Nauwelaerts
61cf6f2ffa
baseparse: reflow update_bitrate code
...
... which makes local variables represent real state better, and avoids
triggering unneeded updates/actions.
2010-10-29 14:11:44 +02:00
Mark Nauwelaerts
841e09e234
baseparse: add some debug statements
2010-10-29 14:11:42 +02:00
Tim-Philipp Müller
05cec96949
dcaparse: init variable to make osx build bot happy
...
gstdcaparse.c: In function 'gst_dca_parse_check_valid_frame':
gstdcaparse.c:246: warning: 'best_sync' may be used uninitialized in this function
2010-10-19 23:25:54 +01:00
Tim-Philipp Müller
d5a008b9ee
audioparsers: add very basic dts/dca parser
...
Still some issues, e.g. with seekable queries in totem, but also
processing already-chunked input (created with matroskademux ! gdppay).
2010-10-19 18:00:14 +01:00
Mark Nauwelaerts
9f4339c059
ac3parse: properly parse e-ac3 frame header
...
Also add a few debug statements.
2010-10-14 16:53:01 +02:00
Mark Nauwelaerts
697419b755
flacparse: tweak setting buffer metadata; avoid timestamp jitter
...
Fixes #631993 .
2010-10-13 11:01:13 +02:00
Mark Nauwelaerts
9b9d8a516b
aacparse: streamline src caps setting
...
In particular, also set src caps whenever changes in stream warrant doing so.
2010-10-12 18:19:49 +02:00
Sebastian Dröge
f576c3f128
flacparse: Don't drop the last frame if it is followed by garbage
...
See bug #631814 .
2010-10-12 10:31:41 +02:00
Mark Nauwelaerts
6e1d65d788
baseparse: perform bitrate handling and posting after newsegment sending
2010-10-11 17:50:21 +02:00
Mark Nauwelaerts
30feca6966
baseparse: immediately post subclass provided bitrate
2010-10-11 17:42:09 +02:00
Mark Nauwelaerts
11bdf1def1
flacparse: fix parsing with unknown framesizes
...
Fixes #631814 (mostly).
2010-10-11 17:13:27 +02:00
Sebastian Dröge
812075dc5d
flacparse: Simplify frame header parsing by using lookup tables
...
Based on a patch by Felipe Contreras.
See bug #631200 .
2010-10-07 23:38:26 +02:00
Sebastian Dröge
64407ca94b
flacparse: Don't parse the complete FLAC frames but only look for valid frame headers
...
Thanks to Felipe Contreras for the suggestion. This is partially
based on his patches and makes flacparse more than 3.5 times faster.
Looking for valid frame headers is unlikely to give false positives
because every frame header is at least 9 bytes long, contains a
14 bit sync code and a 8 bit checksum over the first 8 bytes.
Fixes bug #631200 .
2010-10-07 23:38:25 +02:00
Sebastian Dröge
396501784c
flacparse: Really post tags only after the initial newsegment event
...
The first newsegment event will be send by the first call to
gst_base_parse_push_buffer() if necessary, posting the tags
before that is not a good idea. Instead do it from the
GstBaseParse::pre_push_buffer vfunc.
2010-10-06 18:32:51 +02:00
Tim-Philipp Müller
716e430fd5
Revert "baseparse: add skip property"
...
This reverts commit b5a3d60363
.
Reverting this for now, since no one really seems to remember why this
property exists or what it could possibly be good for. It seems to have
been in the original mp3parse since the beginning of time and was back-
ported from there.
2010-10-05 11:17:52 +01:00
Sebastian Dröge
7e581aebe2
flacparse: Fix uninitialized variable compiler warnings
...
These warnings are wrong, the variables are only used if they were
initialized by the bit reader.
2010-10-04 10:41:52 +02:00