platform/upstream/gstreamer.git
15 years ago[MOVED FROM BAD 37/57] gst/flv/gstflvdemux.c: Error out early if pulling a tag failed.
Sebastian Dröge [Mon, 27 Oct 2008 09:27:18 +0000 (09:27 +0000)]
[MOVED FROM BAD 37/57] gst/flv/gstflvdemux.c: Error out early if pulling a tag failed.

Original commit message from CVS:
* gst/flv/gstflvdemux.c: (gst_flv_demux_pull_tag):
Error out early if pulling a tag failed.

15 years ago[MOVED FROM BAD 36/57] gst/flv/: In pull mode we create our own index before doing...
Sebastian Dröge [Mon, 27 Oct 2008 09:25:11 +0000 (09:25 +0000)]
[MOVED FROM BAD 36/57] gst/flv/: In pull mode we create our own index before doing anything else and don't use the index provided by some fi...

Original commit message from CVS:
* gst/flv/gstflvdemux.c: (gst_flv_demux_create_index),
(gst_flv_demux_loop):
* gst/flv/gstflvparse.c: (gst_flv_parse_tag_script),
(gst_flv_parse_tag_audio), (gst_flv_parse_tag_video),
(gst_flv_parse_tag_timestamp):
* gst/flv/gstflvparse.h:
In pull mode we create our own index before doing anything else
and don't use the index provided by some files (which are more than
often incorrect and cause failed seeks).
For push mode we still use the index provided by the file and extend it
while doing the playback.

15 years ago[MOVED FROM BAD 35/57] gst/flv/gstflvdemux.c: Instead of using gst_pad_event_default...
Sebastian Dröge [Mon, 27 Oct 2008 09:20:01 +0000 (09:20 +0000)]
[MOVED FROM BAD 35/57] gst/flv/gstflvdemux.c: Instead of using gst_pad_event_default() use a small gst_pad_push_event() wrapper that only do...

Original commit message from CVS:
* gst/flv/gstflvdemux.c: (gst_flv_demux_push_src_event),
(gst_flv_demux_loop), (gst_flv_demux_handle_seek_pull),
(gst_flv_demux_sink_event):
Instead of using gst_pad_event_default() use a small
gst_pad_push_event() wrapper that only does what we want and is much
more simple.

15 years ago[MOVED FROM BAD 34/57] gst/flv/gstflvdemux.*: If our index was created by the element...
Sebastian Dröge [Mon, 27 Oct 2008 09:14:45 +0000 (09:14 +0000)]
[MOVED FROM BAD 34/57] gst/flv/gstflvdemux.*: If our index was created by the element and not provided from the outside we should destroy it...

Original commit message from CVS:
* gst/flv/gstflvdemux.c: (gst_flv_demux_change_state),
(gst_flv_demux_set_index), (gst_flv_demux_init):
* gst/flv/gstflvdemux.h:
If our index was created by the element and not provided from the
outside we should destroy it when starting a new stream to get
all old entries removed.

15 years ago[MOVED FROM BAD 33/57] gst/flv/gstflvdemux.c: Improve debugging a bit when pulling...
Sebastian Dröge [Mon, 27 Oct 2008 09:12:33 +0000 (09:12 +0000)]
[MOVED FROM BAD 33/57] gst/flv/gstflvdemux.c: Improve debugging a bit when pulling a buffer from upstream fails.

Original commit message from CVS:
* gst/flv/gstflvdemux.c: (gst_flv_demux_pull_range):
Improve debugging a bit when pulling a buffer from upstream fails.

15 years ago[MOVED FROM BAD 32/57] gst/flv/: Close the currently playing segment from the streami...
Sebastian Dröge [Mon, 27 Oct 2008 09:10:54 +0000 (09:10 +0000)]
[MOVED FROM BAD 32/57] gst/flv/: Close the currently playing segment from the streaming thread instead of the thread where the seek event is...

Original commit message from CVS:
* gst/flv/gstflvdemux.c: (gst_flv_demux_cleanup),
(gst_flv_demux_handle_seek_pull), (gst_flv_demux_dispose):
* gst/flv/gstflvdemux.h:
* gst/flv/gstflvparse.c: (gst_flv_parse_tag_audio),
(gst_flv_parse_tag_video):
Close the currently playing segment from the streaming thread
instead of the thread where the seek event is handled.

15 years ago[MOVED FROM BAD 31/57] gst/flv/gstflvmux.c: Don't set video_codec to the value that...
Sebastian Dröge [Thu, 16 Oct 2008 15:21:15 +0000 (15:21 +0000)]
[MOVED FROM BAD 31/57] gst/flv/gstflvmux.c: Don't set video_codec to the value that actually should go into audio codec, otherwise we create...

Original commit message from CVS:
* gst/flv/gstflvmux.c: (gst_flv_mux_audio_pad_setcaps),
(gst_flv_mux_write_buffer):
Don't set video_codec to the value that actually should go
into audio codec, otherwise we create invalid files.
Fixes bug #556564.

15 years ago[MOVED FROM BAD 30/57] gst/flv/gstflvdemux.c: Fix regression of handling flow returns...
Sebastian Dröge [Sun, 12 Oct 2008 17:08:10 +0000 (17:08 +0000)]
[MOVED FROM BAD 30/57] gst/flv/gstflvdemux.c: Fix regression of handling flow returns in pull mode.

Original commit message from CVS:
* gst/flv/gstflvdemux.c: (gst_flv_demux_pull_tag),
(gst_flv_demux_pull_header):
Fix regression of handling flow returns in pull mode.
Fixes bug #556003.

15 years ago[MOVED FROM BAD 29/57] gst/flv/gstflvparse.c: Use gst_pad_alloc_buffer_and_set_caps...
Sebastian Dröge [Fri, 10 Oct 2008 16:33:36 +0000 (16:33 +0000)]
[MOVED FROM BAD 29/57] gst/flv/gstflvparse.c: Use gst_pad_alloc_buffer_and_set_caps() to make sure we get a buffer with caps that we can wor...

Original commit message from CVS:
* gst/flv/gstflvparse.c: (gst_flv_parse_tag_audio),
(gst_flv_parse_tag_video):
Use gst_pad_alloc_buffer_and_set_caps() to make sure we get
a buffer with caps that we can work with (i.e. the pad's caps).
Add non-keyframe video frames to the index too but without the
keyframe flag.
Add audio frames to the index only if we have no video stream.

15 years ago[MOVED FROM BAD 28/57] gst/flv/gstflvparse.c: Create pads from the pad templates...
Sebastian Dröge [Fri, 10 Oct 2008 16:15:09 +0000 (16:15 +0000)]
[MOVED FROM BAD 28/57] gst/flv/gstflvparse.c: Create pads from the pad templates, use fixed caps on them and only activate them after the ca...

Original commit message from CVS:
* gst/flv/gstflvparse.c: (gst_flv_parse_tag_audio),
(gst_flv_parse_tag_video):
Create pads from the pad templates, use fixed caps on them
and only activate them after the caps are set.

15 years ago[MOVED FROM BAD 27/57] gst/flv/: Get an approximate duration of the file by looking...
Sebastian Dröge [Thu, 9 Oct 2008 16:20:26 +0000 (16:20 +0000)]
[MOVED FROM BAD 27/57] gst/flv/: Get an approximate duration of the file by looking at the timestamp of the last tag in pull mode. If we get...

Original commit message from CVS:
* gst/flv/gstflvdemux.c: (gst_flv_demux_loop):
* gst/flv/gstflvparse.c: (gst_flv_parse_tag_timestamp):
* gst/flv/gstflvparse.h:
Get an approximate duration of the file by looking at the timestamp
of the last tag in pull mode. If we get (maybe better) duration from
metadata later we'll use that instead.

15 years ago[MOVED FROM BAD 26/57] gst/flv/gstflvdemux.c: Refactor _pull_range() logic with check...
Sebastian Dröge [Thu, 9 Oct 2008 15:43:02 +0000 (15:43 +0000)]
[MOVED FROM BAD 26/57] gst/flv/gstflvdemux.c: Refactor _pull_range() logic with checks into a seperate function to make things a bit more re...

Original commit message from CVS:
* gst/flv/gstflvdemux.c: (gst_flv_demux_pull_range),
(gst_flv_demux_pull_tag), (gst_flv_demux_pull_header):
Refactor _pull_range() logic with checks into a seperate function
to make things a bit more readable.

15 years ago[MOVED FROM BAD 25/57] gst/flv/gstflvdemux.c: Use gst_element_class_set_details_simple().
Sebastian Dröge [Thu, 9 Oct 2008 15:26:56 +0000 (15:26 +0000)]
[MOVED FROM BAD 25/57] gst/flv/gstflvdemux.c: Use gst_element_class_set_details_simple().

Original commit message from CVS:
* gst/flv/gstflvdemux.c: (gst_flv_demux_chain),
(gst_flv_demux_base_init):
Use gst_element_class_set_details_simple().
If we get GST_FLOW_NOT_LINKED in the parse loop but at least
one of the pads is linked continue the loop.

15 years ago[MOVED FROM BAD 24/57] gst/flv/gstflvparse.c: Correct caps for video codec id 5:...
Sebastian Dröge [Thu, 9 Oct 2008 10:00:51 +0000 (10:00 +0000)]
[MOVED FROM BAD 24/57] gst/flv/gstflvparse.c: Correct caps for video codec id 5: It's On2 VP6 with alpha channel which needs a different dec...

Original commit message from CVS:
* gst/flv/gstflvparse.c: (gst_flv_parse_audio_negotiate),
(gst_flv_parse_tag_audio), (gst_flv_parse_video_negotiate):
Correct caps for video codec id 5: It's On2 VP6 with alpha channel
which needs a different decoder and has different caps.
Add support for audio codec id 14, which is MP3 with 8kHz sampling
rate.
Fix endianness and signedness for raw audio codec ids.
Add support for alaw and mulaw audio.

15 years ago[MOVED FROM BAD 23/57] gst/flv/gstflvdemux.c: Go out of the parse loop as soon as...
Sebastian Dröge [Thu, 9 Oct 2008 09:48:46 +0000 (09:48 +0000)]
[MOVED FROM BAD 23/57] gst/flv/gstflvdemux.c: Go out of the parse loop as soon as we get an error instead of parsing until the GstAdapter is...

Original commit message from CVS:
* gst/flv/gstflvdemux.c: (gst_flv_demux_chain):
Go out of the parse loop as soon as we get an error instead
of parsing until the GstAdapter is empty.
Add some explanations about the header and tag size.
Don't print synchronizing message if everything is fine.

15 years ago[MOVED FROM BAD 22/57] gst/flv/: Add first version of a FLV muxer. The only missing...
Sebastian Dröge [Thu, 9 Oct 2008 09:26:58 +0000 (09:26 +0000)]
[MOVED FROM BAD 22/57] gst/flv/: Add first version of a FLV muxer. The only missing feature is writing of stream metadata.

Original commit message from CVS:
* gst/flv/Makefile.am:
* gst/flv/gstflvdemux.c: (plugin_init):
* gst/flv/gstflvmux.c: (gst_flv_mux_base_init),
(gst_flv_mux_class_init), (gst_flv_mux_init),
(gst_flv_mux_finalize), (gst_flv_mux_reset),
(gst_flv_mux_handle_src_event), (gst_flv_mux_handle_sink_event),
(gst_flv_mux_video_pad_setcaps), (gst_flv_mux_audio_pad_setcaps),
(gst_flv_mux_request_new_pad), (gst_flv_mux_release_pad),
(gst_flv_mux_write_header), (gst_flv_mux_write_buffer),
(gst_flv_mux_collected), (gst_flv_mux_change_state):
* gst/flv/gstflvmux.h:
Add first version of a FLV muxer. The only missing feature is writing
of stream metadata.

15 years ago[MOVED FROM BAD 21/57] gst/flv/: Introduce demuxing support for AAC and
Julien Moutte [Fri, 13 Jun 2008 22:46:43 +0000 (22:46 +0000)]
[MOVED FROM BAD 21/57] gst/flv/: Introduce demuxing support for AAC and

Original commit message from CVS:
2008-06-14  Julien Moutte  <julien@fluendo.com>

* gst/flv/gstflvdemux.c: (gst_flv_demux_cleanup),
(gst_flv_demux_dispose):
* gst/flv/gstflvdemux.h:
* gst/flv/gstflvparse.c: (gst_flv_parse_audio_negotiate),
(gst_flv_parse_tag_audio), (gst_flv_parse_video_negotiate),
(gst_flv_parse_tag_video): Introduce demuxing support for AAC
and
H.264/AVC inside FLV.
* sys/dshowdecwrapper/gstdshowaudiodec.c:
(gst_dshowaudiodec_init),
(gst_dshowaudiodec_chain), (gst_dshowaudiodec_push_buffer),
(gst_dshowaudiodec_sink_event), (gst_dshowaudiodec_setup_graph):
* sys/dshowdecwrapper/gstdshowaudiodec.h:
* sys/dshowdecwrapper/gstdshowvideodec.c:
(gst_dshowvideodec_init),
(gst_dshowvideodec_sink_event), (gst_dshowvideodec_chain),
(gst_dshowvideodec_push_buffer),
(gst_dshowvideodec_src_getcaps):
* sys/dshowdecwrapper/gstdshowvideodec.h: Lot of random fixes
to improve stability (ref counting, safety checks...)

15 years ago[MOVED FROM BAD 20/57] gst/flv/gstflvdemux.c: Forward unknown queries upstream instea...
Wim Taymans [Fri, 25 Apr 2008 08:07:36 +0000 (08:07 +0000)]
[MOVED FROM BAD 20/57] gst/flv/gstflvdemux.c: Forward unknown queries upstream instead of returning FALSE on them.

Original commit message from CVS:
* gst/flv/gstflvdemux.c: (gst_flv_demux_query):
Forward unknown queries upstream instead of returning FALSE on them.

15 years ago[MOVED FROM BAD 19/57] gst/flv/gstflvparse.c: Handle NULL returns from FLV_GET_STRING...
Tim-Philipp Müller [Fri, 11 Apr 2008 23:19:21 +0000 (23:19 +0000)]
[MOVED FROM BAD 19/57] gst/flv/gstflvparse.c: Handle NULL returns from FLV_GET_STRING() more gracefully. Fixes crash caused by a strlen on a...

Original commit message from CVS:
* gst/flv/gstflvparse.c: (gst_flv_parse_metadata_item),
(gst_flv_parse_tag_script):
Handle NULL returns from FLV_GET_STRING() more gracefully. Fixes
crash caused by a strlen on a NULL string (#527622).

15 years ago[MOVED FROM BAD 18/57] gst/flv/gstflvparse.c: Don't strdup (and thus leak) codec...
Tim-Philipp Müller [Tue, 11 Dec 2007 11:54:43 +0000 (11:54 +0000)]
[MOVED FROM BAD 18/57] gst/flv/gstflvparse.c: Don't strdup (and thus leak) codec name strings when passing them to gst_tag_list_add().

Original commit message from CVS:
* gst/flv/gstflvparse.c: (gst_flv_parse_tag_audio),
(gst_flv_parse_tag_video):
Don't strdup (and thus leak) codec name strings when passing
them to gst_tag_list_add().

15 years ago[MOVED FROM BAD 17/57] gst/flv/gstflvparse.c: Fix list of supported and known codecs.
Edward Hervey [Sun, 9 Dec 2007 19:37:53 +0000 (19:37 +0000)]
[MOVED FROM BAD 17/57] gst/flv/gstflvparse.c: Fix list of supported and known codecs.

Original commit message from CVS:
* gst/flv/gstflvparse.c: (gst_flv_parse_tag_audio),
(gst_flv_parse_tag_video):
Fix list of supported and known codecs.
Emit tag with the codec name so it gets properly reported in totem and
other applications.

15 years ago[MOVED FROM BAD 16/57] gst/flv/gstflvparse.c: Output segment with proper 'stop' value...
Edward Hervey [Sun, 25 Nov 2007 10:45:09 +0000 (10:45 +0000)]
[MOVED FROM BAD 16/57] gst/flv/gstflvparse.c: Output segment with proper 'stop' value, makes flvdemux 100% compatible with gnonlin.

Original commit message from CVS:
* gst/flv/gstflvparse.c: (gst_flv_parse_tag_audio),
(gst_flv_parse_tag_video):
Output segment with proper 'stop' value, makes flvdemux 100% compatible
with gnonlin.

15 years ago[MOVED FROM BAD 15/57] gst/flv/gstflvparse.c: Add mapping for Nellymoser ASAO audio...
Edward Hervey [Mon, 12 Nov 2007 19:22:24 +0000 (19:22 +0000)]
[MOVED FROM BAD 15/57] gst/flv/gstflvparse.c: Add mapping for Nellymoser ASAO audio codec.

Original commit message from CVS:
* gst/flv/gstflvparse.c:
Add mapping for Nellymoser ASAO audio codec.
(gst_flv_parse_tag_audio), (gst_flv_parse_tag_video): Make sure we
actually have data to read at the end of the tag. This avoids trying
to allocate negative buffers.

15 years ago[MOVED FROM BAD 14/57] gst/flv/gstflvparse.c: Don't emit no-more-pads for single...
Julien Moutte [Mon, 22 Oct 2007 15:45:49 +0000 (15:45 +0000)]
[MOVED FROM BAD 14/57] gst/flv/gstflvparse.c: Don't emit no-more-pads for single pad scenarios as the header is definitely not reliable. We ...

Original commit message from CVS:
2007-10-22  Julien MOUTTE  <julien@moutte.net>

* gst/flv/gstflvparse.c: (gst_flv_parse_tag_audio),
(gst_flv_parse_tag_video), (gst_flv_parse_tag_type): Don't
emit no-more-pads for single pad scenarios as the header
is definitely not reliable. We emit them for 2 pads scenarios
though to speed up media discovery.

15 years ago[MOVED FROM BAD 13/57] gst/flv/gstflvparse.c: I got it wrong again, audio rate was...
Julien Moutte [Thu, 27 Sep 2007 10:06:23 +0000 (10:06 +0000)]
[MOVED FROM BAD 13/57] gst/flv/gstflvparse.c: I got it wrong again, audio rate was not detected correctly in all cases.

Original commit message from CVS:
2007-09-27  Julien MOUTTE  <julien@moutte.net>

* gst/flv/gstflvparse.c: (gst_flv_parse_tag_audio),
(gst_flv_parse_tag_video): I got it wrong again, audio rate
was not detected correctly in all cases.

15 years ago[MOVED FROM BAD 12/57] gst/flv/gstflvparse.c: codec_data is needed for every tag...
Julien Moutte [Wed, 26 Sep 2007 16:30:50 +0000 (16:30 +0000)]
[MOVED FROM BAD 12/57] gst/flv/gstflvparse.c: codec_data is needed for every tag not just the first one. (Fix a stupid bug i introduced with...

Original commit message from CVS:
2007-09-26  Julien MOUTTE  <julien@moutte.net>

* gst/flv/gstflvparse.c: (gst_flv_parse_tag_audio),
(gst_flv_parse_tag_video): codec_data is needed for every tag
not just the first one. (Fix a stupid bug i introduced without
testing)

15 years ago[MOVED FROM BAD 11/57] gst/flv/gstflvparse.c: Fix bit masks operations to be sure...
Julien Moutte [Wed, 26 Sep 2007 11:17:08 +0000 (11:17 +0000)]
[MOVED FROM BAD 11/57] gst/flv/gstflvparse.c: Fix bit masks operations to be sure we detect the codec_tags and sample rates correctly.

Original commit message from CVS:
2007-09-26  Julien MOUTTE  <julien@moutte.net>

* gst/flv/gstflvparse.c: (gst_flv_parse_tag_audio),
(gst_flv_parse_tag_video): Fix bit masks operations to be
sure we detect the codec_tags and sample rates correctly.
Fix raw audio caps generation.

15 years ago[MOVED FROM BAD 10/57] gst/: Printf format fixes (#476128).
Peter Kjellerstedt [Wed, 12 Sep 2007 08:38:22 +0000 (08:38 +0000)]
[MOVED FROM BAD 10/57] gst/: Printf format fixes (#476128).

Original commit message from CVS:
Patch by: Peter Kjellerstedt  <pkj at axis com>
* gst-libs/gst/app/gstappsink.c:
* gst/flv/gstflvdemux.c:
* gst/flv/gstflvparse.c:
* gst/interleave/deinterleave.c:
* gst/switch/gstswitch.c:
Printf format fixes (#476128).

15 years ago[MOVED FROM BAD 09/57] gst/flv/gstflvdemux.c: Make sure we initialize the seek result.
Julien Moutte [Mon, 27 Aug 2007 14:56:05 +0000 (14:56 +0000)]
[MOVED FROM BAD 09/57] gst/flv/gstflvdemux.c: Make sure we initialize the seek result.

Original commit message from CVS:
2007-08-27  Julien MOUTTE  <julien@moutte.net>

* gst/flv/gstflvdemux.c: (gst_flv_demux_handle_seek_pull):
Make sure we initialize the seek result.

15 years ago[MOVED FROM BAD 08/57] gst/flv/gstflvdemux.c: Remove some useless ifdef.
Julien Moutte [Fri, 24 Aug 2007 17:03:15 +0000 (17:03 +0000)]
[MOVED FROM BAD 08/57] gst/flv/gstflvdemux.c: Remove some useless ifdef.

Original commit message from CVS:
2007-08-24  Julien MOUTTE  <julien@moutte.net>

* gst/flv/gstflvdemux.c: (gst_flv_demux_flush),
(gst_flv_demux_chain), (gst_flv_demux_pull_tag),
(gst_flv_demux_find_offset), (gst_flv_demux_handle_seek_push),
(gst_flv_demux_handle_seek_pull), (gst_flv_demux_sink_event),
(gst_flv_demux_src_event): Remove some useless ifdef.

15 years ago[MOVED FROM BAD 07/57] gst/flv/gstflvdemux.c: Implement seeking in push mode.
Julien Moutte [Fri, 24 Aug 2007 15:31:26 +0000 (15:31 +0000)]
[MOVED FROM BAD 07/57] gst/flv/gstflvdemux.c: Implement seeking in push mode.

Original commit message from CVS:
2007-08-24  Julien MOUTTE  <julien@moutte.net>

* gst/flv/gstflvdemux.c: (gst_flv_demux_flush),
(gst_flv_demux_cleanup), (gst_flv_demux_chain),
(gst_flv_demux_pull_tag), (gst_flv_demux_find_offset),
(gst_flv_demux_handle_seek_push),
(gst_flv_demux_handle_seek_pull),
(gst_flv_demux_sink_event), (gst_flv_demux_src_event): Implement
seeking in push mode.
* gst/flv/gstflvdemux.h:

15 years ago[MOVED FROM BAD 06/57] gst/flv/: Handle pixel aspect ratio through metadata tags...
Julien Moutte [Wed, 22 Aug 2007 14:50:51 +0000 (14:50 +0000)]
[MOVED FROM BAD 06/57] gst/flv/: Handle pixel aspect ratio through metadata tags like ASF does. Fluendo muxer supports this and

Original commit message from CVS:
2007-08-22  Julien MOUTTE  <julien@moutte.net>

* gst/flv/gstflvdemux.c: (gst_flv_demux_cleanup),
(gst_flv_demux_pull_tag):
* gst/flv/gstflvdemux.h:
* gst/flv/gstflvparse.c: (gst_flv_parse_metadata_item),
(gst_flv_parse_tag_script), (gst_flv_parse_tag_audio),
(gst_flv_parse_tag_video): Handle pixel aspect ratio through
metadata tags like ASF does. Fluendo muxer supports this and
Flash players can support it as well this way.

15 years ago[MOVED FROM BAD 05/57] gst/flv/: Make sure we don't try filling up the index if no...
Julien Moutte [Wed, 22 Aug 2007 14:03:42 +0000 (14:03 +0000)]
[MOVED FROM BAD 05/57] gst/flv/: Make sure we don't try filling up the index if no times object was parsed. Fix the way we decide to push ta...

Original commit message from CVS:
2007-08-22  Julien MOUTTE  <julien@moutte.net>

* gst/flv/gstflvdemux.c: (gst_flv_demux_pull_tag):
* gst/flv/gstflvparse.c: (gst_flv_parse_metadata_item),
(gst_flv_parse_tag_script), (gst_flv_parse_tag_audio),
(gst_flv_parse_tag_video): Make sure we don't try filling up the
index if no times object was parsed. Fix the way we decide to
push
tags and emit no-more-pads. Fix some printf typing in debugging.

15 years ago[MOVED FROM BAD 04/57] gst/flv/gstflvdemux.c: Fix locking and refcounting on the...
Wim Taymans [Tue, 14 Aug 2007 14:56:20 +0000 (14:56 +0000)]
[MOVED FROM BAD 04/57] gst/flv/gstflvdemux.c: Fix locking and refcounting on the index.

Original commit message from CVS:
* gst/flv/gstflvdemux.c: (gst_flv_demux_set_index),
(gst_flv_demux_get_index):
Fix locking and refcounting on the index.

15 years ago[MOVED FROM BAD 03/57] gst/flv/gstflvdemux.c: First method for seeking in pull mode...
Julien Moutte [Tue, 14 Aug 2007 14:22:09 +0000 (14:22 +0000)]
[MOVED FROM BAD 03/57] gst/flv/gstflvdemux.c: First method for seeking in pull mode using the index built step by step or coming from metadata.

Original commit message from CVS:
2007-08-14  Julien MOUTTE  <julien@moutte.net>

* gst/flv/gstflvdemux.c: (gst_flv_demux_cleanup),
(gst_flv_demux_adapter_flush), (gst_flv_demux_chain),
(gst_flv_demux_pull_tag), (gst_flv_demux_do_seek),
(gst_flv_demux_handle_seek), (gst_flv_demux_sink_event),
(gst_flv_demux_src_event), (gst_flv_demux_query),
(gst_flv_demux_change_state), (gst_flv_demux_set_index),
(gst_flv_demux_get_index), (gst_flv_demux_dispose),
(gst_flv_demux_class_init): First method for seeking in pull
mode using the index built step by step or coming from metadata.
* gst/flv/gstflvdemux.h:
* gst/flv/gstflvparse.c: (FLV_GET_STRING),
(gst_flv_parse_metadata_item), (gst_flv_parse_tag_script),
(gst_flv_parse_tag_audio), (gst_flv_parse_tag_video): Parse
more metadata types and keyframes index.

15 years ago[MOVED FROM BAD 02/57] gst/flv/: Handle not linked pads, try to make it reusable...
Julien Moutte [Wed, 25 Jul 2007 13:29:04 +0000 (13:29 +0000)]
[MOVED FROM BAD 02/57] gst/flv/: Handle not linked pads, try to make it reusable, more safety checks.

Original commit message from CVS:
2007-07-25  Julien MOUTTE  <julien@moutte.net>

(gst_flv_demux_chain), (gst_flv_demux_pull_tag),
(gst_flv_demux_change_state), (gst_flv_demux_dispose),
(gst_flv_demux_init):
* gst/flv/gstflvdemux.h:
* gst/flv/gstflvparse.c: (FLV_GET_STRING),
(gst_flv_parse_metadata_item), (gst_flv_parse_tag_script),
(gst_flv_parse_tag_audio), (gst_flv_parse_tag_video),
(gst_flv_parse_header):
* gst/flv/gstflvparse.h: Handle not linked pads, try to make it
reusable, more safety checks.

15 years ago[MOVED FROM BAD 01/57] Adds a first draft of an FLV demuxer.
Julien Moutte [Thu, 19 Jul 2007 15:05:30 +0000 (15:05 +0000)]
[MOVED FROM BAD 01/57] Adds a first draft of an FLV demuxer.

Original commit message from CVS:
2007-07-19  Julien MOUTTE  <julien@moutte.net>

* configure.ac:
* gst/flv/Makefile.am:
* gst/flv/gstflvdemux.c: (gst_flv_demux_flush),
(gst_flv_demux_cleanup), (gst_flv_demux_chain),
(gst_flv_demux_pull_tag), (gst_flv_demux_pull_header),
(gst_flv_demux_seek_to_prev_keyframe), (gst_flv_demux_loop),
(gst_flv_demux_sink_activate),
(gst_flv_demux_sink_activate_push),
(gst_flv_demux_sink_activate_pull), (gst_flv_demux_sink_event),
(gst_flv_demux_change_state), (gst_flv_demux_dispose),
(gst_flv_demux_base_init), (gst_flv_demux_class_init),
(gst_flv_demux_init), (plugin_init):
* gst/flv/gstflvdemux.h:
* gst/flv/gstflvparse.c: (FLV_GET_BEUI24), (FLV_GET_STRING),
(gst_flv_demux_query_types), (gst_flv_demux_query),
(gst_flv_parse_metadata_item), (gst_flv_parse_tag_script),
(gst_flv_parse_tag_audio), (gst_flv_parse_tag_video),
(gst_flv_parse_tag_type), (gst_flv_parse_header):
* gst/flv/gstflvparse.h: Adds a first draft of an FLV demuxer.
It does not do seeking yet, it supports pull and push mode so
YES
you can use it to play youtube videos directly from an HTTP uri.
Not so much testing done yet but it parses metadata, reply to
duration queries, etc...

15 years agortp: Link to -lm
Sebastian Dröge [Tue, 12 May 2009 11:00:46 +0000 (13:00 +0200)]
rtp: Link to -lm

Fixes bug #582281.

15 years agorganalysis: Remove invalid unit test
Sebastian Dröge [Tue, 12 May 2009 09:16:48 +0000 (11:16 +0200)]
rganalysis: Remove invalid unit test

The test creates buffers with non-silence, sets the GAP
flag on it and expects rganalysis to ignore the content and assume silence.

That's not the way how GAP buffers should be used, if the GAP flag is set
elements *can* assume that they only contain silence but they're not *required*
to assume that. The GAP flag must only be set on silence buffers.

Fixes bug #582252.

15 years ago0.10.14.2 pre-release
Jan Schmidt [Mon, 11 May 2009 23:48:49 +0000 (00:48 +0100)]
0.10.14.2 pre-release

15 years agochecks: dist id3-577468-unsynced-tag.tag test file
Jan Schmidt [Mon, 11 May 2009 22:13:20 +0000 (23:13 +0100)]
checks: dist id3-577468-unsynced-tag.tag test file

15 years agoavidemux: initialize variable to 0
Tristan Matthews [Mon, 11 May 2009 19:02:27 +0000 (21:02 +0200)]
avidemux: initialize variable to 0

Fixes #582218.

15 years agomatroskademux: Only search for the index entry once
Sebastian Dröge [Mon, 11 May 2009 16:21:13 +0000 (18:21 +0200)]
matroskademux: Only search for the index entry once

15 years agomatroskademux: Use the first index entry if it's after the seek position
Sebastian Dröge [Mon, 11 May 2009 16:18:36 +0000 (18:18 +0200)]
matroskademux: Use the first index entry if it's after the seek position

15 years agoavidemux: Use the first entry for a given stream if the first entry is after the...
Sebastian Dröge [Mon, 11 May 2009 16:15:22 +0000 (18:15 +0200)]
avidemux: Use the first entry for a given stream if the first entry is after the seek position

15 years agoavidemux: Use binary search for finding the requested index entry when seeking
Sebastian Dröge [Mon, 11 May 2009 14:50:48 +0000 (16:50 +0200)]
avidemux: Use binary search for finding the requested index entry when seeking

15 years agomatroskademux: Improve/optimize seeking
Sebastian Dröge [Mon, 11 May 2009 13:36:46 +0000 (15:36 +0200)]
matroskademux: Improve/optimize seeking

First of all a keyframe seek should be done to the
keyframe right before the requested position and not
to the keyframe that is nearest to the requested position.

Use per track index arrays and use our new binary search function
from core to speed up the search.

15 years agoRequire released versions of core/base
Sebastian Dröge [Mon, 11 May 2009 13:36:36 +0000 (15:36 +0200)]
Require released versions of core/base

15 years agogdkpixbuf: Use the libs and cflags of gdk pixbuf instead of gtk
Sebastian Dröge [Mon, 11 May 2009 08:15:00 +0000 (10:15 +0200)]
gdkpixbuf: Use the libs and cflags of gdk pixbuf instead of gtk

This fixes the build if gdk-pixbuf is found but gtk isn't

15 years agoAlways define the conditional HAVE_GTK to fix configure in some cases
Sebastian Dröge [Mon, 11 May 2009 07:58:48 +0000 (09:58 +0200)]
Always define the conditional HAVE_GTK to fix configure in some cases

15 years agoRun libtoolize before aclocal
Marc-Andre Lureau [Sun, 10 May 2009 09:17:23 +0000 (11:17 +0200)]
Run libtoolize before aclocal

This unbreaks the build in some cases. Fixes bug #582021

15 years agomatroska: fix printf format to agree with argument
David Schleef [Sat, 9 May 2009 17:50:45 +0000 (10:50 -0700)]
matroska: fix printf format to agree with argument

15 years agoraw1394: include stdlib.h for strtol()
Tim-Philipp Müller [Fri, 8 May 2009 18:42:10 +0000 (19:42 +0100)]
raw1394: include stdlib.h for strtol()

Fixes compiler warning when compiling with xml stuff in core disabled.

15 years agoflacdec: Actually output the pending buffer.. and not a blank one.
Edward Hervey [Fri, 8 May 2009 14:40:57 +0000 (16:40 +0200)]
flacdec: Actually output the pending buffer.. and not a blank one.

It was previously sending the bogus buffer which was returned from
the bufferalloc (required for reverse negotiation apparently) instead
of the pending buffer.

15 years agosouphttpsrc: Allow non-string fields in the extra-headers property
Sebastian Dröge [Fri, 8 May 2009 10:00:57 +0000 (12:00 +0200)]
souphttpsrc: Allow non-string fields in the extra-headers property

15 years agortj2kdepay: add basic JPEG 2000 depayloader
Wim Taymans [Fri, 8 May 2009 09:35:02 +0000 (11:35 +0200)]
rtj2kdepay: add basic JPEG 2000 depayloader

15 years agortpj2kpay: set marker bit correctly
Wim Taymans [Fri, 8 May 2009 09:31:02 +0000 (11:31 +0200)]
rtpj2kpay: set marker bit correctly

15 years agosouphttpsrc: Add support for extra-headers appended to the HTTP request
Sebastian Dröge [Fri, 8 May 2009 09:29:04 +0000 (11:29 +0200)]
souphttpsrc: Add support for extra-headers appended to the HTTP request

This allows to set the Referer header among other things by
adding a "extra-headers" property that takes a GstStructure
with field=string pairs.

Fixes bug #581806.

15 years agortpj2kpay: add a simple JPEG 2000 payloader
Wim Taymans [Fri, 8 May 2009 08:38:42 +0000 (10:38 +0200)]
rtpj2kpay: add a simple JPEG 2000 payloader

15 years agortpjpegpay: we only need to swap bits on LE
Wim Taymans [Fri, 8 May 2009 08:31:12 +0000 (10:31 +0200)]
rtpjpegpay: we only need to swap bits on LE

15 years agoAdd RANKS for various encoders and muxers
Christian Schaller [Thu, 7 May 2009 17:10:08 +0000 (18:10 +0100)]
Add RANKS for various encoders and muxers

15 years agomatroskademux: add some debugging
Wim Taymans [Thu, 7 May 2009 15:09:44 +0000 (17:09 +0200)]
matroskademux: add some debugging

15 years agomatroskademux: parse xiph headers length correctly
Wim Taymans [Thu, 7 May 2009 13:58:43 +0000 (15:58 +0200)]
matroskademux: parse xiph headers length correctly

See #580980

15 years agorganalysis: Add ability to post level messages
Gabriel Bouvigne [Thu, 7 May 2009 14:25:41 +0000 (16:25 +0200)]
rganalysis: Add ability to post level messages

Fixes bug #581568.

15 years agortpjpegpay: refuse some unsupported jpeg formats
Wim Taymans [Wed, 6 May 2009 21:56:44 +0000 (23:56 +0200)]
rtpjpegpay: refuse some unsupported jpeg formats

15 years agortptheorapay: fix description
Wim Taymans [Wed, 6 May 2009 16:06:49 +0000 (18:06 +0200)]
rtptheorapay: fix description

15 years agortpjpegpay: rewrite quant table handling
Wim Taymans [Wed, 6 May 2009 14:09:13 +0000 (16:09 +0200)]
rtpjpegpay: rewrite quant table handling

Rewrite the quant table parsing to also handle multiple tables in one JPEG HDQ
segment.
Handle more jpeg types by keeping track of the tables used per component and
putting the used ones in the quant headers.

15 years agoid3v2mux: Make the test failure slightly more informative
Jan Schmidt [Sat, 18 Apr 2009 16:23:51 +0000 (17:23 +0100)]
id3v2mux: Make the test failure slightly more informative

15 years agoflac: Make buffers created during seek act like normal buffers.
Jan Schmidt [Mon, 20 Apr 2009 17:33:09 +0000 (18:33 +0100)]
flac: Make buffers created during seek act like normal buffers.

Store the offset and caps when allocating a buffer during seeking, and then
allocate a new buffer with buffer_alloc before we push it out. This ensures
that in all respects the first buffer decoded during seeking behaves like
all other buffers, including allowing downstream re-negotiation.

15 years agoflacdec: don't use pad_alloc when decoding while seeking. Fixes #579422
Thomas Vander Stichele [Sat, 18 Apr 2009 16:00:54 +0000 (18:00 +0200)]
flacdec: don't use pad_alloc when decoding while seeking. Fixes #579422

15 years agojpegdec: refactored gst_jpeg_dec_parse_image_data
Arnout Vandecappelle [Wed, 6 May 2009 11:22:51 +0000 (13:22 +0200)]
jpegdec: refactored gst_jpeg_dec_parse_image_data

Fixes #579808

15 years agojpegdec: support additional 0xff before end marker.
Arnout Vandecappelle [Wed, 6 May 2009 11:11:53 +0000 (13:11 +0200)]
jpegdec: support additional 0xff before end marker.

JPEG markers may be preceded by additional 0xff.  jpegdec should
skip over these, even before the end marker.
See #579808

15 years agortpjpegpay: handle input with 1 quant table
Wim Taymans [Wed, 6 May 2009 10:54:22 +0000 (12:54 +0200)]
rtpjpegpay: handle input with 1 quant table

Also handle input with just one quant table, simply duplicate the quant table.
Handle invalid SOF correctly and some small cleanups.
Fixes #578257

15 years agoqtdemux: fix byte order swapping in 3GPP classification entity tag
Marco Ballesio [Wed, 29 Apr 2009 12:58:10 +0000 (15:58 +0300)]
qtdemux: fix byte order swapping in 3GPP classification entity tag

Fixes #580746.

15 years agomultipartdemux: avoid reading from inavlid memory
Arnout Vandecappelle [Tue, 5 May 2009 15:07:13 +0000 (17:07 +0200)]
multipartdemux: avoid reading from inavlid memory

Read the timestamp of the incomming buffer before we push it in the adapter and
flush it out again as the buffer might be unreffed then and we read from invalid
memory.
Fixes #581444.

15 years agomultipartdemux: don't leak dynamic pads
Arnout Vandecappelle [Tue, 5 May 2009 15:03:29 +0000 (17:03 +0200)]
multipartdemux: don't leak dynamic pads

Free the dynamic pads data in finalize.
Fixes #581432

15 years agortpjpegpay: correctly set the type header
Wim Taymans [Tue, 5 May 2009 14:32:17 +0000 (16:32 +0200)]
rtpjpegpay: correctly set the type header

Don't require width/height on the caps. Use the SOF header to find width/height
and fall back to the caps if there is no SOF. Also use the SOF info to find the
subsampling and quantization tables used. This allows us to set the right type
value in the JPEG rtp header.

Deprecate the quality property, it's unused now and it was used wrongly before.

Always send full quant tables for now until we have some code to detect default
ones.

Fixes #580880

15 years agortpjpegdepay: use width/height from payload
Wim Taymans [Tue, 5 May 2009 14:28:44 +0000 (16:28 +0200)]
rtpjpegdepay: use width/height from payload

Use the width and the height from the payload headers and set them on the
output caps for added awesomeness.

Fix quant parsing, we need to check the type in the lower 6 bits.

Add first bits of caching quantization tables.

15 years agojpegenc: set colorspace before _set_defaults()
Wim Taymans [Tue, 5 May 2009 14:24:16 +0000 (16:24 +0200)]
jpegenc: set colorspace before _set_defaults()

The libjpeg api says that we need to set the colorspace before we call
_set_defaults(). Indeed, if we don't do that we end up with some very freaky
non-standard quant table and huffman table indexes.

15 years agotests: don't build examples if --disable-examples was passed to configure
Tim-Philipp Müller [Tue, 5 May 2009 12:19:19 +0000 (13:19 +0100)]
tests: don't build examples if --disable-examples was passed to configure

15 years agoconfigure: clean up mess around gtk+ checking
Tim-Philipp Müller [Tue, 5 May 2009 11:33:57 +0000 (12:33 +0100)]
configure: clean up mess around gtk+ checking

And don't check for gtk+ when it's not needed (ie. if examples are disabled)

15 years agoconfigure: make gdk-pixbuf plugin depend only on gdk-pixbuf, not gtk+
Tim-Philipp Müller [Tue, 5 May 2009 11:27:21 +0000 (12:27 +0100)]
configure: make gdk-pixbuf plugin depend only on gdk-pixbuf, not gtk+

15 years agortspsrc: Fix find_stream_by_* functions
Wim Taymans [Mon, 4 May 2009 16:55:12 +0000 (18:55 +0200)]
rtspsrc: Fix find_stream_by_* functions

Fix various version of find_stream_by_* by not trying to convert an int to a
pointer and vice versa, for portability reasons.

Fixes #581333

15 years agortspsrc: fix dummy nat packet logic
Chris Winter [Mon, 4 May 2009 16:32:05 +0000 (18:32 +0200)]
rtspsrc: fix dummy nat packet logic

Fix a typo in the dummy NAT packet sending code.

Fixes #581329

15 years agortspsrc: avoid errors after server eof
Mark Nauwelaerts [Thu, 30 Apr 2009 08:24:27 +0000 (10:24 +0200)]
rtspsrc: avoid errors after server eof

Server eof (e.g. connection closed) is announced as connection closed,
so better record state and act accordingly to prevent (read/write)
errors during subsequent teardown/cleanup sequences.  #Fixes 580851.(c).

15 years agortspsrc: also set base_time on src after flush
Mark Nauwelaerts [Thu, 30 Apr 2009 08:19:27 +0000 (10:19 +0200)]
rtspsrc: also set base_time on src after flush

timestamps following flush/seek should be consistent between
UDP and TCP interleaved case.  Fixes #580851.(b).

15 years agortspsrc: sanity checks on range info
Mark Nauwelaerts [Thu, 30 Apr 2009 08:17:23 +0000 (10:17 +0200)]
rtspsrc: sanity checks on range info

A max range that overflows should not be trusted,
nor should a max range that equals the min range.
Fixes #580851.(a).

15 years agortspsrc: use SKIP flag to use SCALE headers
Wim Taymans [Mon, 4 May 2009 14:16:54 +0000 (16:16 +0200)]
rtspsrc: use SKIP flag to use SCALE headers

We can use the SKIP seek flag to instruct the server to send data faster then
normal but with the same bandwidth.
Fixes #537609

15 years agospeexdec: make speex_dec_convert work with same-format values when no data has been...
Alessandro Decina [Mon, 4 May 2009 12:19:22 +0000 (14:19 +0200)]
speexdec: make speex_dec_convert work with same-format values when no data has been decoded.

15 years agoflac: Implement preset interface
Sebastian Dröge [Mon, 4 May 2009 10:43:42 +0000 (12:43 +0200)]
flac: Implement preset interface

15 years agospeex: Implement preset interface
Sebastian Dröge [Mon, 4 May 2009 10:41:56 +0000 (12:41 +0200)]
speex: Implement preset interface

15 years agowavpack: Implement preset interface
Sebastian Dröge [Mon, 4 May 2009 10:40:12 +0000 (12:40 +0200)]
wavpack: Implement preset interface

15 years agoqtdemux: use binary search for index
Wim Taymans [Mon, 4 May 2009 10:35:19 +0000 (12:35 +0200)]
qtdemux: use binary search for index

Use the new binary search method for finding the right index entry faster.

15 years agovideobox: draw the complete U and V planes
Wim Taymans [Mon, 4 May 2009 09:26:56 +0000 (11:26 +0200)]
videobox: draw the complete U and V planes

Round up the scaled U and V width and height so that we always draw the correct
amount of pixels to fill the complete image.

Fixes #569611

15 years agoqtdemux: add some more micro optimisations
Wim Taymans [Fri, 1 May 2009 17:35:11 +0000 (19:35 +0200)]
qtdemux: add some more micro optimisations

15 years agoqtdemux: micro optimize qtdemux a little
Wim Taymans [Thu, 30 Apr 2009 16:41:44 +0000 (18:41 +0200)]
qtdemux: micro optimize qtdemux a little

Sprinkle some G_LIKELY around.

Avoid traversing and dumping the tree when debugging is not activated.

15 years agoqtdemux: add support for subtitle pictures
Wim Taymans [Thu, 30 Apr 2009 12:22:27 +0000 (14:22 +0200)]
qtdemux: add support for subtitle pictures

Add support for subtitle pictures.
Fixes #568278.

15 years agopulsesink: make sure we always signal waiters
Wim Taymans [Thu, 30 Apr 2009 08:32:39 +0000 (10:32 +0200)]
pulsesink: make sure we always signal waiters

Always signal the waiters in the async callbacks. Especially for the volume
callbacks since this might cause deadlocks.

15 years agortspsrc: release state lock before stopping task
Wim Taymans [Wed, 29 Apr 2009 16:09:07 +0000 (18:09 +0200)]
rtspsrc: release state lock before stopping task

We need to release the state lock before trying to wait for the task to end
because the task might also take the lock.

Fixes #577671

15 years agoqtdemux: handle ac-3 audio
Hans de Goede [Wed, 29 Apr 2009 10:19:27 +0000 (12:19 +0200)]
qtdemux: handle ac-3 audio

fix demuxing of m4v streams with ac-3 audio
Fixes #580554