summaryrefslogtreecommitdiffstats
path: root/gst
AgeCommit message (Collapse)AuthorFilesLines
2008-10-30gst/speexresample/: Add support for int8, int24 and int32 input by ↵Sebastian Dröge3-12/+204
converting internally to/from int16 or double. Original commit message from CVS: * gst/speexresample/gstspeexresample.c: (gst_speex_resample_stop), (gst_speex_resample_get_funcs), (gst_speex_resample_transform_size), (gst_speex_resample_convert_buffer), (gst_speex_resample_push_drain), (gst_speex_resample_process): * gst/speexresample/gstspeexresample.h: * gst/speexresample/speex_resampler_wrapper.h: Add support for int8, int24 and int32 input by converting internally to/from int16 or double.
2008-10-30Add support for double samples as input and refactor the usage of the ↵Sebastian Dröge8-176/+339
different compilation flavors of the speex resa... Original commit message from CVS: * gst/speexresample/Makefile.am: * gst/speexresample/arch.h: * gst/speexresample/gstspeexresample.c: (gst_speex_resample_stop), (gst_speex_resample_get_unit_size), (gst_speex_resample_get_funcs), (gst_speex_resample_init_state), (gst_speex_resample_update_state), (gst_speex_resample_reset_state), (gst_speex_resample_parse_caps), (_gcd), (gst_speex_resample_transform_size), (gst_speex_resample_set_caps), (gst_speex_resample_push_drain), (gst_speex_resample_process), (gst_speex_resample_transform), (gst_speex_resample_query), (gst_speex_resample_set_property): * gst/speexresample/gstspeexresample.h: * gst/speexresample/resample.c: * gst/speexresample/speex_resampler.h: * gst/speexresample/speex_resampler_double.c: * gst/speexresample/speex_resampler_wrapper.h: * tests/check/elements/speexresample.c: (setup_speexresample), (test_perfect_stream_instance), (GST_START_TEST), (test_discont_stream_instance): Add support for double samples as input and refactor the usage of the different compilation flavors of the speex resampler.
2008-10-30gst/scaletempo/gstscaletempo.c: Return the result of parent_class->event().Stefan Kost1-2/+1
Original commit message from CVS: * gst/scaletempo/gstscaletempo.c: Return the result of parent_class->event().
2008-10-30gst/audiobuffer/: Add first version of an audioringbuffer element that can ↵Wim Taymans2-0/+1196
be inserted in the pipeline to convert pus... Original commit message from CVS: * gst/audiobuffer/Makefile.am: * gst/audiobuffer/gstaudioringbuffer.c: (gst_int_ring_buffer_acquire), (gst_int_ring_buffer_release), (gst_int_ring_buffer_start), (gst_int_ring_buffer_base_init), (gst_int_ring_buffer_class_init), (gst_int_ring_buffer_init), (gst_int_ring_buffer_new), (gst_audio_ringbuffer_get_type), (gst_audio_ringbuffer_class_init), (gst_audio_ringbuffer_init), (gst_audio_ringbuffer_finalize), (gst_audio_ringbuffer_getcaps), (gst_audio_ringbuffer_setcaps), (gst_audio_ringbuffer_bufferalloc), (gst_audio_ringbuffer_handle_sink_event), (gst_audio_ringbuffer_render), (gst_audio_ringbuffer_chain), (gst_audio_ringbuffer_handle_src_event), (gst_audio_ringbuffer_handle_src_query), (gst_audio_ringbuffer_get_range), (gst_audio_ringbuffer_src_checkgetrange_function), (gst_audio_ringbuffer_sink_activate_push), (gst_audio_ringbuffer_src_activate_push), (gst_audio_ringbuffer_src_activate_pull), (gst_audio_ringbuffer_change_state), (gst_audio_ringbuffer_set_property), (gst_audio_ringbuffer_get_property), (plugin_init): Add first version of an audioringbuffer element that can be inserted in the pipeline to convert push-based upstream into a pull-based downstream.
2008-10-30gst/audioresample/gstaudioresample.c: Return the result of ↵Stefan Kost1-3/+1
parent_class->event(). Original commit message from CVS: * gst/audioresample/gstaudioresample.c: Return the result of parent_class->event().
2008-10-30gst/aiffparse/aiffparse.c: AIFF is always signed, even for 8 bit.Michael Smith1-2/+1
Original commit message from CVS: * gst/aiffparse/aiffparse.c: AIFF is always signed, even for 8 bit.
2008-10-29gst/real/gstrealvideodec.c: A RealVideo video inside a container (for ↵Robin Stocker1-0/+7
example MKV) should use the Original commit message from CVS: Patch by: Robin Stocker <robin at nibor dot org> * gst/real/gstrealvideodec.c: (gst_real_video_dec_setcaps): A RealVideo video inside a container (for example MKV) should use the PAR which is specified on the sinkpad caps. Fixes #558416.
2008-10-29gst/speexresample/gstspeexresample.*: Rewrite timestamp tracking to make it ↵Sebastian Dröge2-110/+66
more robust and guarantee a continous str... Original commit message from CVS: * gst/speexresample/gstspeexresample.c: (gst_speex_resample_start), (gst_speex_resample_get_unit_size), (gst_speex_resample_push_drain), (gst_speex_resample_event), (gst_speex_resample_check_discont), (gst_speex_resample_process), (gst_speex_resample_transform): * gst/speexresample/gstspeexresample.h: Rewrite timestamp tracking to make it more robust and guarantee a continous stream. * tests/check/Makefile.am: * tests/check/elements/speexresample.c: (setup_speexresample), (cleanup_speexresample), (fail_unless_perfect_stream), (test_perfect_stream_instance), (GST_START_TEST), (test_discont_stream_instance), (live_switch_alloc_only_48000), (live_switch_get_sink_caps), (live_switch_push), (speexresample_suite): Add unit tests for speexresample based on the audioresample unit tests.
2008-10-28gst/speexresample/gstspeexresample.*: Some random cleanup, add G_LIKELY and ↵Sebastian Dröge2-64/+75
friends, use GST_DEBUG_OBJECT instead of ... Original commit message from CVS: * gst/speexresample/gstspeexresample.c: (gst_speex_resample_get_unit_size), (gst_speex_resample_fixate_caps), (gst_speex_resample_init_state), (gst_speex_resample_update_state), (gst_speex_resample_parse_caps), (gst_speex_resample_transform_size), (gst_speex_resample_set_caps), (gst_speex_resample_push_drain), (gst_speex_resample_event), (gst_speex_resample_check_discont), (gst_speex_fix_output_buffer), (gst_speex_resample_process), (gst_speex_resample_transform), (gst_speex_resample_query), (gst_speex_resample_set_property): * gst/speexresample/gstspeexresample.h: Some random cleanup, add G_LIKELY and friends, use GST_DEBUG_OBJECT instead of GST_DEBUG, ...
2008-10-28gst/flv/gstflvdemux.c: Implement position query in time format.Sebastian Dröge1-0/+22
Original commit message from CVS: * gst/flv/gstflvdemux.c: (gst_flv_demux_query): Implement position query in time format.
2008-10-28gst/flv/: Put the GstSegment directly into the instance struct instead of ↵Sebastian Dröge3-77/+73
allocating and free'ing it again. Original commit message from CVS: * gst/flv/gstflvdemux.c: (gst_flv_demux_cleanup), (gst_flv_demux_loop), (gst_flv_demux_handle_seek_push), (gst_flv_demux_handle_seek_pull), (gst_flv_demux_sink_event), (gst_flv_demux_dispose), (gst_flv_demux_init): * gst/flv/gstflvdemux.h: * gst/flv/gstflvparse.c: (gst_flv_parse_tag_audio), (gst_flv_parse_tag_video), (gst_flv_parse_tag_timestamp): Put the GstSegment directly into the instance struct instead of allocating and free'ing it again. Push tags already if only one pad was added, no need to wait for the second one. When generating our index set has_video and has_audio if we find video or audio in case the FLV header has incorrect data.
2008-10-28gst/speexresample/gstspeexresample.c: Fixate to the nearest supported rate ↵Sebastian Dröge1-1/+24
instead of the first one. Original commit message from CVS: * gst/speexresample/gstspeexresample.c: (gst_speex_resample_class_init), (gst_speex_resample_fixate_caps), (gst_speex_resample_process): Fixate to the nearest supported rate instead of the first one.
2008-10-28gst/audioresample/gstaudioresample.c: Fixate the rate to the nearest ↵Sebastian Dröge1-0/+20
supported rate instead of the first one. Fixes b... Original commit message from CVS: * gst/audioresample/gstaudioresample.c: (gst_audioresample_class_init), (audioresample_fixate_caps): Fixate the rate to the nearest supported rate instead of the first one. Fixes bug #549510.
2008-10-28gst/speexresample/: Update Speex resampler with latest version from Speex GIT.Sebastian Dröge9-537/+1397
Original commit message from CVS: * gst/speexresample/README: * gst/speexresample/arch.h: * gst/speexresample/fixed_arm4.h: * gst/speexresample/fixed_arm5e.h: * gst/speexresample/fixed_bfin.h: * gst/speexresample/fixed_debug.h: * gst/speexresample/fixed_generic.h: * gst/speexresample/resample.c: (compute_func), (main), (sinc), (cubic_coef), (resampler_basic_direct_single), (resampler_basic_direct_double), (resampler_basic_interpolate_single), (resampler_basic_interpolate_double), (update_filter), (speex_resampler_init_frac), (speex_resampler_process_native), (speex_resampler_magic), (speex_resampler_process_float), (speex_resampler_process_int), (speex_resampler_process_interleaved_float), (speex_resampler_process_interleaved_int), (speex_resampler_set_rate_frac), (speex_resampler_skip_zeros), (speex_resampler_reset_mem): * gst/speexresample/speex_resampler.h: Update Speex resampler with latest version from Speex GIT.
2008-10-28gst/aiffparse/aiffparse.*: Calculate width from depth correctly.Michael Smith2-6/+42
Original commit message from CVS: * gst/aiffparse/aiffparse.c: * gst/aiffparse/aiffparse.h: Calculate width from depth correctly. Read SSND header properly (fixes 24 bit AIFF reading).
2008-10-27gst/flv/: Don't memcpy() all data we want to push downstream, instead just ↵Sebastian Dröge3-141/+138
create subbuffers and push them downstream. Original commit message from CVS: * gst/flv/gstflvdemux.c: (gst_flv_demux_chain), (gst_flv_demux_pull_tag), (gst_flv_demux_pull_header), (gst_flv_demux_create_index): * 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_parse_tag_type), (gst_flv_parse_header): * gst/flv/gstflvparse.h: Don't memcpy() all data we want to push downstream, instead just create subbuffers and push them downstream. Fix some minor memory leaks.
2008-10-27gst/flv/Makefile.am: Fix (non-critical) syntax error and add all required ↵Sebastian Dröge2-119/+102
CFLAGS and LIBS. Original commit message from CVS: * gst/flv/Makefile.am: Fix (non-critical) syntax error and add all required CFLAGS and LIBS. * 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_tag_timestamp), (gst_flv_parse_tag_type): Rewrite the script tag parsing to make sure we don't try to read more data than we have. Also use GST_READ_UINT24_BE directly and fix some minor memory leaks. This should make all crashes on fuzzed FLV files disappear.
2008-10-27gst/flv/gstflvparse.c: Properly check everywhere that we have enough data to ↵Sebastian Dröge1-1/+21
parse and don't read outside the allocat... Original commit message from CVS: * gst/flv/gstflvparse.c: (FLV_GET_STRING), (gst_flv_parse_tag_audio), (gst_flv_parse_tag_video), (gst_flv_parse_tag_type), (gst_flv_parse_header): Properly check everywhere that we have enough data to parse and don't read outside the allocated memory region.
2008-10-27gst/flv/gstflvparse.c: If the caps change during playback and negotiation ↵Sebastian Dröge1-2/+9
fails error out instead of trying to continue. Original commit message from CVS: * gst/flv/gstflvparse.c: (gst_flv_parse_tag_audio), (gst_flv_parse_tag_video): If the caps change during playback and negotiation fails error out instead of trying to continue.
2008-10-27gst/flv/: Add support for Speex audio and allow buffers without valid ↵Sebastian Dröge3-8/+28
timestamp in the muxer. Original commit message from CVS: * gst/flv/gstflvmux.c: (gst_flv_mux_audio_pad_setcaps), (gst_flv_mux_request_new_pad), (gst_flv_mux_write_buffer), (gst_flv_mux_collected): * gst/flv/gstflvmux.h: * gst/flv/gstflvparse.c: (gst_flv_parse_audio_negotiate): Add support for Speex audio and allow buffers without valid timestamp in the muxer.
2008-10-27gst/flv/gstflvdemux.c: Don't post an error message on the bus if sending EOS ↵Sebastian Dröge1-27/+17
downstream didn't work. Fixes bug #550454. Original commit message from CVS: * gst/flv/gstflvdemux.c: (gst_flv_demux_loop), (gst_flv_demux_find_offset), (gst_flv_demux_handle_seek_push), (gst_flv_demux_handle_seek_pull): Don't post an error message on the bus if sending EOS downstream didn't work. Fixes bug #550454. Fix seek event handling to look at the flags of the seek event instead of assuming some random flags, don't send segment-start messages when operating in push mode and push seek events upstream if we couldn't handle them.
2008-10-27gst/flv/gstflvdemux.c: Error out early if pulling a tag failed.Sebastian Dröge1-0/+3
Original commit message from CVS: * gst/flv/gstflvdemux.c: (gst_flv_demux_pull_tag): Error out early if pulling a tag failed.
2008-10-27gst/flv/: In pull mode we create our own index before doing anything else ↵Sebastian Dröge3-53/+96
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.
2008-10-27gst/flv/gstflvdemux.c: Instead of using gst_pad_event_default() use a small ↵Sebastian Dröge1-9/+25
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.
2008-10-27gst/flv/gstflvdemux.*: If our index was created by the element and not ↵Sebastian Dröge2-0/+13
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.
2008-10-27gst/flv/gstflvdemux.c: Improve debugging a bit when pulling a buffer from ↵Sebastian Dröge1-3/+6
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.
2008-10-27gst/flv/: Close the currently playing segment from the streaming thread ↵Sebastian Dröge3-9/+32
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.
2008-10-27gst/mpegdemux/mpegtspacketizer.c: Add support for the frequency list ↵David Härdeman1-0/+72
descriptor, which provides additional frequencie... Original commit message from CVS: Patch by: David Härdeman <david at hardeman dot nu> * gst/mpegdemux/mpegtspacketizer.c: (mpegts_packetizer_parse_nit): Add support for the frequency list descriptor, which provides additional frequencies that should be scanned by a DVB application. Fixes bug #557814.
2008-10-27gst/mpegtsmux/mpegtsmux.c: Fix EOS logic by correctly popping the collect ↵vanista1-2/+11
pad buffers only when we've chosen to use t... Original commit message from CVS: Patch by: vanista <vanista at gmail dot com> * gst/mpegtsmux/mpegtsmux.c: (mpegtsmux_choose_best_stream): Fix EOS logic by correctly popping the collect pad buffers only when we've chosen to use them instead of popping them always and storing them in a private queue. Before the pipeline would deadlock if all pads go EOS at the same time. Fixes bug #557763.
2008-10-20gst/mpegdemux/gstmpegdemux.c: Fix reverse playback regression.Edward Hervey1-4/+16
Original commit message from CVS: * gst/mpegdemux/gstmpegdemux.c: (gst_flups_demux_send_data): Fix reverse playback regression. Fixes #557080
2008-10-16gst/mpegdemux/gstmpegtsdemux.*: Properly handle some resync cases in the ↵Zaheer Abbas Merali2-21/+75
optimised buffering strategy. Original commit message from CVS: Patch by: Josep Torra * gst/mpegdemux/gstmpegtsdemux.c: * gst/mpegdemux/gstmpegtsdemux.h: Properly handle some resync cases in the optimised buffering strategy.
2008-10-16gst/flv/gstflvmux.c: Don't set video_codec to the value that actually should ↵Sebastian Dröge1-4/+4
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.
2008-10-16Don't install static libs for plugins. Fixes #550851 for base.Stefan Kost1-0/+2
Original commit message from CVS: * ext/alsa/Makefile.am: * ext/cdparanoia/Makefile.am: * ext/gio/Makefile.am: * ext/gnomevfs/Makefile.am: * ext/libvisual/Makefile.am: * ext/ogg/Makefile.am: * ext/pango/Makefile.am: * ext/theora/Makefile.am: * ext/vorbis/Makefile.am: * gst/adder/Makefile.am: * gst/audioconvert/Makefile.am: * gst/audiorate/Makefile.am: * gst/audioresample/Makefile.am: * gst/audiotestsrc/Makefile.am: * gst/ffmpegcolorspace/Makefile.am: * gst/gdp/Makefile.am: * gst/playback/Makefile.am: * gst/subparse/Makefile.am: * gst/tcp/Makefile.am: * gst/typefind/Makefile.am: * gst/videorate/Makefile.am: * gst/videoscale/Makefile.am: * gst/videotestsrc/Makefile.am: * gst/volume/Makefile.am: * sys/v4l/Makefile.am: * sys/ximage/Makefile.am: * sys/xvimage/Makefile.am: Don't install static libs for plugins. Fixes #550851 for base.
2008-10-16gst/rtpmanager/gstrtpjitterbuffer.c: Fix problem with using the output ↵Wim Taymans2-28/+46
seqnum counter to check for input seqnum disco... Original commit message from CVS: * gst/rtpmanager/gstrtpjitterbuffer.c: (gst_jitter_buffer_sink_parse_caps), (gst_rtp_jitter_buffer_flush_start), (gst_rtp_jitter_buffer_flush_stop), (gst_rtp_jitter_buffer_chain), (gst_rtp_jitter_buffer_loop): Fix problem with using the output seqnum counter to check for input seqnum discontinuities. Improve gap detection and recovery, reset and flush the jitterbuffer on seqnum restart. Fixes #556520. * gst/rtpmanager/rtpjitterbuffer.c: (rtp_jitter_buffer_insert): Fix wrong G_LIKELY.
2008-10-16gst/rtpmanager/gstrtpsession.c: Install event handler on the rtcp_src pad, ↵Wim Taymans1-0/+29
make LATENCY event return Original commit message from CVS: * gst/rtpmanager/gstrtpsession.c: (gst_rtp_session_event_send_rtcp_src), (create_send_rtcp_src): Install event handler on the rtcp_src pad, make LATENCY event return TRUE.
2008-10-16gst/mpegdemux/gstmpegdemux.c: Make sure the mpegpsdemux element creates ↵Edward Hervey1-2/+8
valid newsegment events. Original commit message from CVS: * gst/mpegdemux/gstmpegdemux.c: (gst_flups_demux_send_data): Make sure the mpegpsdemux element creates valid newsegment events. Fixes #556428
2008-10-16gst/mpegdemux/mpegtspacketizer.c: Fixes segfault in get_encoding_and_convert.Sebastian Pölsterl1-0/+3
Original commit message from CVS: patch by: Sebastian Pölsterl * gst/mpegdemux/mpegtspacketizer.c: Fixes segfault in get_encoding_and_convert. Fixes #556482
2008-10-16gst/mpegdemux/gstmpegtsdemux.c: Fixes a segfault in the adaptation buffer ↵Zaheer Abbas Merali1-4/+7
size strategy. Original commit message from CVS: patch by: Josep Torra * gst/mpegdemux/gstmpegtsdemux.c: Fixes a segfault in the adaptation buffer size strategy. Fixes #556440
2008-10-15gst/selector/gstinputselector.c: Gracefully handle the cases when we dont' ↵Edward Hervey1-7/+10
have otherpad. Original commit message from CVS: * gst/selector/gstinputselector.c: (gst_input_selector_event), (gst_input_selector_query): Gracefully handle the cases when we dont' have otherpad. Fixes #556430
2008-10-14gst/aiffparse/aiffparse.c: Fix debugging category initialization.Edward Hervey1-5/+3
Original commit message from CVS: * gst/aiffparse/aiffparse.c: (plugin_init): Fix debugging category initialization. Fixes #556274
2008-10-12gst/flv/gstflvdemux.c: Fix regression of handling flow returns in pull mode.Sebastian Dröge1-6/+6
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.
2008-10-10gst/flv/gstflvparse.c: Use gst_pad_alloc_buffer_and_set_caps() to make sure ↵Sebastian Dröge1-6/+30
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.
2008-10-10gst/flv/gstflvparse.c: Create pads from the pad templates, use fixed caps on ↵Sebastian Dröge1-7/+16
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.
2008-10-10Fix compiler warning on OS/X about parameters not matching the debug format ↵Jan Schmidt1-2/+2
string. Original commit message from CVS: 2008-10-10 Jan Schmidt <jan.schmidt@sun.com> * gst/flacparse/gstbaseparse.c (gst_base_parse_push_buffer), (gst_base_parse_update_upstream_durations): Fix compiler warning on OS/X about parameters not matching the debug format string.
2008-10-09gst/deinterlace2/tvtime/tomsmocomp.c: Fix unused variable compiler warning ↵Sebastian Dröge1-0/+2
when not building Original commit message from CVS: * gst/deinterlace2/tvtime/tomsmocomp.c: (gst_deinterlace_method_tomsmocomp_class_init): Fix unused variable compiler warning when not building X86 assembly.
2008-10-09gst/flv/: Get an approximate duration of the file by looking at the ↵Sebastian Dröge3-0/+65
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.
2008-10-09gst/flv/gstflvdemux.c: Refactor _pull_range() logic with checks into a ↵Sebastian Dröge1-39/+31
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.
2008-10-09gst/flv/gstflvdemux.c: Use gst_element_class_set_details_simple().Sebastian Dröge1-10/+11
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.
2008-10-09gst/flv/gstflvparse.c: Correct caps for video codec id 5: It's On2 VP6 with ↵Sebastian Dröge1-3/+24
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.
2008-10-09gst/flv/gstflvdemux.c: Go out of the parse loop as soon as we get an error ↵Sebastian Dröge1-1/+9
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.