platform/upstream/gst-plugins-base.git
16 years agogst/gdp/gstgdppay.c: Close a buffer memory leak. Fixes bug #534071.
Antoine Tremblay [Wed, 21 May 2008 06:45:22 +0000 (06:45 +0000)]
gst/gdp/gstgdppay.c: Close a buffer memory leak. Fixes bug #534071.

Original commit message from CVS:
Patch by: Antoine Tremblay <hexa00 at gmail dot com>
* gst/gdp/gstgdppay.c: (gst_gdp_pay_chain):
Close a buffer memory leak. Fixes bug #534071.

16 years agogst-libs/gst/rtsp/gstrtsptransport.h: Make the GstRTSPTransport struct members public...
Sebastian Dröge [Wed, 21 May 2008 06:39:20 +0000 (06:39 +0000)]
gst-libs/gst/rtsp/gstrtsptransport.h: Make the GstRTSPTransport struct members public as there are no setters/getters...

Original commit message from CVS:
* gst-libs/gst/rtsp/gstrtsptransport.h:
Make the GstRTSPTransport struct members public as there are no
setters/getters and it's supposed to be changed directly.
Fixes bug #533087.

16 years agogst/adder/gstadder.c: Adder also doesn't support audio/x-raw-int with width!=depth...
Sebastian Dröge [Wed, 21 May 2008 05:48:05 +0000 (05:48 +0000)]
gst/adder/gstadder.c: Adder also doesn't support audio/x-raw-int with width!=depth so don't claim this on the pad tem...

Original commit message from CVS:
* gst/adder/gstadder.c:
Adder also doesn't support audio/x-raw-int with width!=depth so don't
claim this on the pad template caps.

16 years agogst-libs/gst/audio/gstbaseaudiosink.c: We can only use our optimal calibration if...
Wim Taymans [Tue, 20 May 2008 16:26:53 +0000 (16:26 +0000)]
gst-libs/gst/audio/gstbaseaudiosink.c: We can only use our optimal calibration if we prerolled before the latency exp...

Original commit message from CVS:
* gst-libs/gst/audio/gstbaseaudiosink.c:
(gst_base_audio_sink_sync_latency):
We can only use our optimal calibration if we prerolled before the
latency expired.

16 years agoconfigure.ac: Require core CVS for GstBaseSrc buffer caps setting magic.
Tim-Philipp Müller [Tue, 20 May 2008 14:35:42 +0000 (14:35 +0000)]
configure.ac: Require core CVS for GstBaseSrc buffer caps setting magic.

Original commit message from CVS:
* configure.ac:
Require core CVS for GstBaseSrc buffer caps setting magic.

16 years agogst/audioconvert/gstaudioconvert.c: Fix logic in last commit.
Sebastian Dröge [Tue, 20 May 2008 12:26:32 +0000 (12:26 +0000)]
gst/audioconvert/gstaudioconvert.c: Fix logic in last commit.

Original commit message from CVS:
* gst/audioconvert/gstaudioconvert.c:
(gst_audio_convert_fixate_channels):
Fix logic in last commit.

16 years agogst/audioconvert/gstaudioconvert.c: Passthrough the channel positions if the number...
Sebastian Dröge [Tue, 20 May 2008 12:15:34 +0000 (12:15 +0000)]
gst/audioconvert/gstaudioconvert.c: Passthrough the channel positions if the number of output channels is the same as...

Original commit message from CVS:
* gst/audioconvert/gstaudioconvert.c:
(gst_audio_convert_fixate_channels):
Passthrough the channel positions if the number of output channels is
the same as the number of input channels, the input had a channel
layout and downstream requests no special one. We did this already for
> 2 channels but now it's also done for 1 channel. Fixes bug #533617.

16 years agoext/gnomevfs/gstgnomevfssrc.*: Set the ICY caps on the srcpad from where they get...
Wim Taymans [Tue, 20 May 2008 11:13:27 +0000 (11:13 +0000)]
ext/gnomevfs/gstgnomevfssrc.*: Set the ICY caps on the srcpad from where they get picked up by the base class now and...

Original commit message from CVS:
* ext/gnomevfs/gstgnomevfssrc.c: (gst_gnome_vfs_src_init),
(gst_gnome_vfs_src_finalize),
(gst_gnome_vfs_src_received_headers_callback),
(gst_gnome_vfs_src_create), (gst_gnome_vfs_src_stop):
* ext/gnomevfs/gstgnomevfssrc.h:
Set the ICY caps on the srcpad from where they get picked up by the base
class now and set on the outgoing buffers.
* gst-libs/gst/audio/gstbaseaudiosrc.c:
(gst_base_audio_src_create):
* sys/v4l/v4lsrc_calls.c: (gst_v4lsrc_buffer_new):
BaseSrc now sets the caps on outgoing buffers automatically.

16 years agogst-libs/gst/audio/gstbaseaudiosink.c: Change the way in which the ringbuffer is...
Wim Taymans [Tue, 20 May 2008 11:09:06 +0000 (11:09 +0000)]
gst-libs/gst/audio/gstbaseaudiosink.c: Change the way in which the ringbuffer is started when dealing with a slaved c...

Original commit message from CVS:
* gst-libs/gst/audio/gstbaseaudiosink.c:
(gst_base_audio_sink_resample_slaving),
(gst_base_audio_sink_skew_slaving),
(gst_base_audio_sink_sync_latency), (gst_base_audio_sink_render),
(gst_base_audio_sink_async_play),
(gst_base_audio_sink_change_state):
Change the way in which the ringbuffer is started when dealing with a
slaved clock and latency. We now sync to the clock until we reach
upstream latency before starting the ringbuffer. This has the effect
that we can accurately align the master and slave clocks and let the
rate correction code take care of the initial drift or rounding errors
instead of leaving them uncorrected with the old approach.

16 years agogst/audioconvert/gstaudioconvert.c: Correctly set the default channel positions when...
Sebastian Dröge [Tue, 20 May 2008 08:12:19 +0000 (08:12 +0000)]
gst/audioconvert/gstaudioconvert.c: Correctly set the default channel positions when converting to 8 channels.

Original commit message from CVS:
* gst/audioconvert/gstaudioconvert.c:
(gst_audio_convert_fixate_channels):
Correctly set the default channel positions when converting to 8
channels.

16 years agoconfigure.ac: Error out if we don't have the required version of core.
Tim-Philipp Müller [Mon, 19 May 2008 16:13:25 +0000 (16:13 +0000)]
configure.ac: Error out if we don't have the required version of core.

Original commit message from CVS:
* configure.ac:
Error out if we don't have the required version of core.

16 years agogst/typefind/gsttypefindfunctions.c: Use data scan helper in aac typefinder and stop...
Tim-Philipp Müller [Mon, 19 May 2008 15:59:40 +0000 (15:59 +0000)]
gst/typefind/gsttypefindfunctions.c: Use data scan helper in aac typefinder and stop scanning for headers when we've ...

Original commit message from CVS:
* gst/typefind/gsttypefindfunctions.c: (aac_type_find):
Use data scan helper in aac typefinder and stop scanning
for headers when we've found a type. Also fix potential invalid
memory access when calculating the frame length.

16 years agogst/typefind/gsttypefindfunctions.c: Don't modify scan context when we return FALSE...
Tim-Philipp Müller [Mon, 19 May 2008 14:09:08 +0000 (14:09 +0000)]
gst/typefind/gsttypefindfunctions.c: Don't modify scan context when we return FALSE in ensure_data, so it's possible ...

Original commit message from CVS:
* gst/typefind/gsttypefindfunctions.c: (data_scan_ctx_ensure_data),
(mpeg_sys_is_valid_pack):
Don't modify scan context when we return FALSE in ensure_data, so
it's possible to continue scanning, and we don't end up with a NULL
data pointer and a positive size, which might bite us the next time
we're called. Small constification.

16 years agogst/adder/gstadder.c: Adder doesn't support 24 bit samples so don't claim it supports...
Sebastian Dröge [Fri, 16 May 2008 21:12:02 +0000 (21:12 +0000)]
gst/adder/gstadder.c: Adder doesn't support 24 bit samples so don't claim it supports them in the pad template caps.

Original commit message from CVS:
* gst/adder/gstadder.c:
Adder doesn't support 24 bit samples so don't claim it supports them
in the pad template caps.

16 years agogst-libs/gst/rtp/gstbasertpdepayload.c: Validate the RTP packet before further proces...
Wim Taymans [Wed, 14 May 2008 20:28:02 +0000 (20:28 +0000)]
gst-libs/gst/rtp/gstbasertpdepayload.c: Validate the RTP packet before further processing it. It's just too dangerous...

Original commit message from CVS:
* gst-libs/gst/rtp/gstbasertpdepayload.c:
(gst_base_rtp_depayload_chain):
Validate the RTP packet before further processing it. It's just too
dangerous to accept random packets and people are not forced to use a
jitterbuffer or session manager to filter out the bad packets.
* gst-libs/gst/rtp/gstrtpbuffer.c:
(gst_rtp_buffer_set_extension_data),
(gst_rtp_buffer_get_payload_subbuffer):
Small cleanups.
When setting extension data in a buffer that is too small, we fail and
we should not set the extension bit.
Change GST_WARNINGS into g_warning because they really are
programming errors.
* tests/check/libs/rtp.c: (GST_START_TEST):
Catch the g_warnings now in the unit tests and that fact that failing to
set extension data left the extension bit untouched.

16 years agogst/audioresample/gstaudioresample.c: Revert previous change which made basetransform...
Tim-Philipp Müller [Wed, 14 May 2008 13:57:41 +0000 (13:57 +0000)]
gst/audioresample/gstaudioresample.c: Revert previous change which made basetransform handle buffer_alloc and which b...

Original commit message from CVS:
* gst/audioresample/gstaudioresample.c: (gst_audioresample_init):
Revert previous change which made basetransform handle buffer_alloc
and which breaks things badly in the non-passthrough case since it
returned buffers with a different (ie. sometimes smaller) size than
the size requested.

16 years agogst-libs/gst/rtp/gstrtpbuffer.c: Fix seqnum compare function for bordercase values...
Bernard B [Wed, 14 May 2008 13:43:12 +0000 (13:43 +0000)]
gst-libs/gst/rtp/gstrtpbuffer.c: Fix seqnum compare function for bordercase values and fix the docs again. Fixes #533...

Original commit message from CVS:
Patch by: Bernard B <b-gnome at largestprime dot net>
* gst-libs/gst/rtp/gstrtpbuffer.c: (gst_rtp_buffer_compare_seqnum):
Fix seqnum compare function for bordercase values and fix the docs
again. Fixes #533075.
* tests/check/libs/rtp.c: (GST_START_TEST), (rtp_suite):
Add a testcase for seqnum compare function.

16 years agogst/adder/gstadder.c: Correctly declare the supported endianness on the pad templates...
Sebastian Dröge [Wed, 14 May 2008 10:58:52 +0000 (10:58 +0000)]
gst/adder/gstadder.c: Correctly declare the supported endianness on the pad templates and check for correct endiannes...

Original commit message from CVS:
* gst/adder/gstadder.c: (gst_adder_setcaps),
(gst_adder_class_init):
Correctly declare the supported endianness on the pad templates
and check for correct endianness in the set caps function. Adder
only supports native endianness.
Also use gst_element_class_set_details_simple().

16 years agosys/xvimage/xvimagesink.c: Better debug logging in port value handling. Merging separ...
Stefan Kost [Wed, 14 May 2008 09:12:10 +0000 (09:12 +0000)]
sys/xvimage/xvimagesink.c: Better debug logging in port value handling. Merging separate port value loops into one.

Original commit message from CVS:
* sys/xvimage/xvimagesink.c:
Better debug logging in port value handling. Merging separate port
value loops into one.

16 years agogst/tcp/: Fix regression in clientsrc because we did not add the fd to the poll set...
Hannes Bistry [Tue, 13 May 2008 16:02:19 +0000 (16:02 +0000)]
gst/tcp/: Fix regression in clientsrc because we did not add the fd to the poll set anymore. Fixes #532364.

Original commit message from CVS:
Patch by: Hannes Bistry <hannesb at gmx dot de>
* gst/tcp/gsttcpclientsrc.c: (gst_tcp_client_src_start):
* gst/tcp/gsttcpserversink.c:
(gst_tcp_server_sink_handle_server_read),
(gst_tcp_server_sink_handle_wait), (gst_tcp_server_sink_init_send):
Fix regression in clientsrc because we did not add the fd to the poll
set anymore. Fixes #532364.
Do some cleanups here and there.

16 years agogst/playback/: Use correct marshallers. GstCaps are a boxed type and no GObject subclass.
Sebastian Dröge [Tue, 13 May 2008 13:04:24 +0000 (13:04 +0000)]
gst/playback/: Use correct marshallers. GstCaps are a boxed type and no GObject subclass.

Original commit message from CVS:
* gst/playback/gstdecodebin.c: (gst_decode_bin_class_init):
* gst/playback/gstdecodebin2.c: (gst_decode_bin_class_init):
* gst/playback/gstplay-marshal.list:
* gst/playback/gsturidecodebin.c: (gst_uri_decode_bin_class_init):
Use correct marshallers. GstCaps are a boxed type and no GObject
subclass.

16 years agowin32/common/libgstrtsp.def: Add gst_rtsp_connection_(set|clear)_auth_param() to...
Sebastian Dröge [Tue, 13 May 2008 11:37:15 +0000 (11:37 +0000)]
win32/common/libgstrtsp.def: Add gst_rtsp_connection_(set|clear)_auth_param() to the exported symbols.

Original commit message from CVS:
* win32/common/libgstrtsp.def:
Add gst_rtsp_connection_(set|clear)_auth_param() to the exported
symbols.

16 years agotests/check/elements/audioresample.c: Add unit test for the latest basetransform...
Sjoerd Simons [Tue, 13 May 2008 10:59:49 +0000 (10:59 +0000)]
tests/check/elements/audioresample.c: Add unit test for the latest basetransform negotiation changes.

Original commit message from CVS:
Patch by: Sjoerd Simons <sjoerd at luon dot net>
* tests/check/elements/audioresample.c:
(live_switch_alloc_only_48000), (live_switch_get_sink_caps),
(live_switch_push), (GST_START_TEST):
Add unit test for the latest basetransform negotiation changes.
See bug #526768.

16 years agogst/ffmpegcolorspace/imgconvert.c: Fix nv12<->nv21 conversion if stride is larger...
Sebastian Dröge [Tue, 13 May 2008 09:14:44 +0000 (09:14 +0000)]
gst/ffmpegcolorspace/imgconvert.c: Fix nv12<->nv21 conversion if stride is larger than width.

Original commit message from CVS:
* gst/ffmpegcolorspace/imgconvert.c: (nv12_to_nv21):
Fix nv12<->nv21 conversion if stride is larger than width.

16 years agoext/ogg/gstoggdemux.*: Parse presentation time from skeleton streams and use it as...
j^ [Tue, 13 May 2008 07:28:21 +0000 (07:28 +0000)]
ext/ogg/gstoggdemux.*: Parse presentation time from skeleton streams and use it as offset for the timestamps. Fixes b...

Original commit message from CVS:
Patch by: j^ <j at oil21 dot org>
* ext/ogg/gstoggdemux.c: (gst_ogg_pad_parse_skeleton_fishead),
(gst_ogg_pad_parse_skeleton_fisbone):
* ext/ogg/gstoggdemux.h:
Parse presentation time from skeleton streams and use it as offset
for the timestamps. Fixes bug #530068.

16 years agogst-libs/gst/audio/gstbaseaudiosink.c: Revert previous patch that attempted to more...
Wim Taymans [Mon, 12 May 2008 08:45:11 +0000 (08:45 +0000)]
gst-libs/gst/audio/gstbaseaudiosink.c: Revert previous patch that attempted to more accurately calculate the initial ...

Original commit message from CVS:
* gst-libs/gst/audio/gstbaseaudiosink.c:
(gst_base_audio_sink_render), (gst_base_audio_sink_async_play):
Revert previous patch that attempted to more accurately calculate the
initial offset between master and slave clock. The best thing we can do
in general is take the time of both clocks as the diff since we don't
know when the actual preroll happened.

16 years agogst-libs/gst/pbutils/install-plugins.c: Fix docs: type and missing word.
Tim-Philipp Müller [Sun, 11 May 2008 19:52:59 +0000 (19:52 +0000)]
gst-libs/gst/pbutils/install-plugins.c: Fix docs: type and missing word.

Original commit message from CVS:
* gst-libs/gst/pbutils/install-plugins.c:
Fix docs: type and missing word.

16 years agogst/typefind/gsttypefindfunctions.c: Don't do lots of 4-byte peeks, but use the ...
Tim-Philipp Müller [Sat, 10 May 2008 20:16:21 +0000 (20:16 +0000)]
gst/typefind/gsttypefindfunctions.c: Don't do lots of 4-byte peeks, but use the 'new' data scan helper for this inste...

Original commit message from CVS:
* gst/typefind/gsttypefindfunctions.c: (h264_video_type_find):
Don't do lots of 4-byte peeks, but use the 'new' data scan helper
for this instead; don't check if we've found enough markers after
each and every step, it's enough to do that only if we've actually
found a new marker.
Embed a G_UNLIKELY into the IS_MPEG_HEADER macro.

16 years agogst/typefind/gsttypefindfunctions.c: Move scan helper thingy to the beginning of...
Tim-Philipp Müller [Sat, 10 May 2008 18:19:17 +0000 (18:19 +0000)]
gst/typefind/gsttypefindfunctions.c: Move scan helper thingy to the beginning of the file so we can use it in other t...

Original commit message from CVS:
* gst/typefind/gsttypefindfunctions.c:
(DATA_SCAN_CTX_CHUNK_SIZE), (DataScanCtx), (data_scan_ctx_advance),
(data_scan_ctx_ensure_data), (GST_MPEGVID_TYPEFIND_TRY_SYNC),
(mpeg_video_stream_type_find):
Move scan helper thingy to the beginning of the file so we can use
it in other typefind functions. Rename it to something more
generic. Also improve handling of things towards the end of the
typefind data: peek as much as we can if we know the size of the
data, rather than just min_size.

16 years agoDocument the GstTuner and GstColorBalance interfaces, and some other random API funct...
Jan Schmidt [Fri, 9 May 2008 21:42:26 +0000 (21:42 +0000)]
Document the GstTuner and GstColorBalance interfaces, and some other random API functions that needed it. 70% symbol ...

Original commit message from CVS:
* docs/libs/gst-plugins-base-libs-sections.txt:
* gst-libs/gst/interfaces/colorbalance.c:
* gst-libs/gst/interfaces/colorbalance.h:
* gst-libs/gst/interfaces/colorbalancechannel.c:
* gst-libs/gst/interfaces/colorbalancechannel.h:
* gst-libs/gst/interfaces/tuner.c:
* gst-libs/gst/interfaces/tunerchannel.c:
* gst-libs/gst/interfaces/tunerchannel.h:
* gst-libs/gst/interfaces/tunernorm.c:
* gst-libs/gst/interfaces/tunernorm.h:
* gst-libs/gst/video/video.c:
* gst-libs/gst/video/video.h:
Document the GstTuner and GstColorBalance interfaces, and some
other random API functions that needed it. 70% symbol coverage, woo.

16 years agogst-libs/gst/audio/gstaudiosink.c: Choose to allocate one less segment but require...
Wim Taymans [Fri, 9 May 2008 16:38:10 +0000 (16:38 +0000)]
gst-libs/gst/audio/gstaudiosink.c: Choose to allocate one less segment but require one additional segment as latency.

Original commit message from CVS:
* gst-libs/gst/audio/gstaudiosink.c: (gst_audioringbuffer_acquire):
Choose to allocate one less segment but require one additional segment
as latency.
* gst-libs/gst/audio/gstaudiosrc.c: (gst_audioringbuffer_acquire):
No need to increment the number of segments in the source.
* gst-libs/gst/audio/gstbaseaudiosink.c:
(gst_base_audio_sink_get_time), (clock_convert_external),
(gst_base_audio_sink_resample_slaving),
(gst_base_audio_sink_skew_slaving),
(gst_base_audio_sink_none_slaving), (gst_base_audio_sink_render),
(gst_base_audio_sink_async_play):
Remove adding latency when returning the internal time while subtracting
it again when we use the value a little later.
When calculating the end timestamp, we are making a rounding error
with the current algorithm. Ensure that we don't accumulate these
rounding errors when aligning samples by not resampling at all if we
don't need to. Fixes #419351.
Make the initial calibration of the clock slaving a little more
predictable and accurate. Also handle the case where we don't do
clock slaving.

16 years agogst/ffmpegcolorspace/: Add conversions from/to NV12 and NV21 and conversions between...
Sebastian Dröge [Fri, 9 May 2008 08:34:52 +0000 (08:34 +0000)]
gst/ffmpegcolorspace/: Add conversions from/to NV12 and NV21 and conversions between those two formats. Fixes bug #53...

Original commit message from CVS:
Based on a patch by:
Björn Benderius <bjoern dot benderius at axis dot com>
* gst/ffmpegcolorspace/avcodec.h:
* gst/ffmpegcolorspace/gstffmpegcodecmap.c:
(gst_ffmpeg_pixfmt_to_caps), (gst_ffmpeg_caps_to_pixfmt),
(gst_ffmpegcsp_avpicture_fill):
* gst/ffmpegcolorspace/imgconvert.c: (nv12_to_nv21):
* gst/ffmpegcolorspace/imgconvert_template.h:
Add conversions from/to NV12 and NV21 and conversions between those
two formats. Fixes bug #532166.

16 years agogst/typefind/gsttypefindfunctions.c: Abort the h264 typefinding as soon as _peek...
Edward Hervey [Thu, 8 May 2008 17:35:44 +0000 (17:35 +0000)]
gst/typefind/gsttypefindfunctions.c: Abort the h264 typefinding as soon as _peek() doesn't return anything, which hap...

Original commit message from CVS:
* gst/typefind/gsttypefindfunctions.c: (h264_video_type_find):
Abort the h264 typefinding as soon as _peek() doesn't return anything,
which happens for example with files smaller than 128kb.

16 years agogst-libs/gst/rtsp/: Add Digest authorization support for RTSP connections. See #532065.
Wouter Cloetens [Thu, 8 May 2008 14:46:27 +0000 (14:46 +0000)]
gst-libs/gst/rtsp/: Add Digest authorization support for RTSP connections. See #532065.

Original commit message from CVS:
Patch by: Wouter Cloetens <zombie at e2big dot org>
* gst-libs/gst/rtsp/Makefile.am:
* gst-libs/gst/rtsp/gstrtspconnection.c:
(gst_rtsp_connection_create), (md5_digest_to_hex_string),
(auth_digest_compute_hex_urp), (auth_digest_compute_response),
(add_auth_header), (gst_rtsp_connection_free),
(gst_rtsp_connection_set_auth), (str_case_hash), (str_case_equal),
(gst_rtsp_connection_set_auth_param),
(gst_rtsp_connection_clear_auth_params):
* gst-libs/gst/rtsp/gstrtspconnection.h:
Add Digest authorization support for RTSP connections. See #532065.
* gst-libs/gst/rtsp/md5.c:
* gst-libs/gst/rtsp/md5.h:
Yeap, another md5 implementation until we can depend on a glib that has
support for it.

16 years agogst/audioresample/gstaudioresample.c: Let audioresample use the buffer allocation...
Sjoerd Simons [Thu, 8 May 2008 06:20:42 +0000 (06:20 +0000)]
gst/audioresample/gstaudioresample.c: Let audioresample use the buffer allocation of basetransform instead of it's ow...

Original commit message from CVS:
Patch by: Sjoerd Simons <sjoerd at luon dot net>
* gst/audioresample/gstaudioresample.c: (gst_audioresample_init):
Let audioresample use the buffer allocation of basetransform instead
of it's own stuff.
* tests/check/elements/audioresample.c: (alloc_only_48000),
(GST_START_TEST), (audioresample_suite):
Add unit test for the recent basetransform bugfix, where upstream
changes caps to something that can't be passed through anymore.

16 years agowin32/common/config.h.in: Don't define GST_FUNCTION, if GLib supports MSVC we'd much...
Ole André Vadla Ravnås [Wed, 7 May 2008 19:50:27 +0000 (19:50 +0000)]
win32/common/config.h.in: Don't define GST_FUNCTION, if GLib supports MSVC we'd much rather use the real thing than h...

Original commit message from CVS:
* win32/common/config.h.in:
Don't define GST_FUNCTION, if GLib supports MSVC we'd much rather
use the real thing than having "???" unconditionally.

16 years agogst-libs/gst/audio/gstbaseaudiosink.c: Report the latency with the new seglatency...
Wim Taymans [Wed, 7 May 2008 15:47:03 +0000 (15:47 +0000)]
gst-libs/gst/audio/gstbaseaudiosink.c: Report the latency with the new seglatency parameter.

Original commit message from CVS:
* gst-libs/gst/audio/gstbaseaudiosink.c:
(gst_base_audio_sink_query):
Report the latency with the new seglatency parameter.
* gst-libs/gst/audio/gstringbuffer.c:
(gst_ring_buffer_debug_spec_buff), (gst_ring_buffer_parse_caps),
(gst_ring_buffer_acquire):
* gst-libs/gst/audio/gstringbuffer.h:
Add new field to the ringbufferspec to specify the expected latency
between the underlying device read/write pointer, this is needed
when writing sinks that sit a little closer to the hardware.
Add some more docs for other fields.

16 years agogst-libs/gst/app/: Add marshal.list, make it compile and add to cvsignore.
Wim Taymans [Wed, 7 May 2008 10:38:23 +0000 (10:38 +0000)]
gst-libs/gst/app/: Add marshal.list, make it compile and add to cvsignore.

Original commit message from CVS:
* gst-libs/gst/app/.cvsignore:
* gst-libs/gst/app/Makefile.am:
* gst-libs/gst/app/gstapp-marshal.list:
Add marshal.list, make it compile and add to cvsignore.
* gst-libs/gst/app/gstappsink.c: (gst_app_sink_dispose),
(gst_app_sink_stop):
Small cleanups.
* gst-libs/gst/app/gstappsrc.c: (gst_app_src_class_init),
(gst_app_src_init), (gst_app_src_set_property),
(gst_app_src_get_property), (gst_app_src_unlock),
(gst_app_src_unlock_stop), (gst_app_src_start), (gst_app_src_stop),
(gst_app_src_create), (gst_app_src_set_caps),
(gst_app_src_get_caps), (gst_app_src_set_size),
(gst_app_src_get_size), (gst_app_src_set_seekable),
(gst_app_src_get_seekable), (gst_app_src_set_max_buffers),
(gst_app_src_get_max_buffers), (gst_app_src_push_buffer),
(gst_app_src_end_of_stream):
* gst-libs/gst/app/gstappsrc.h:
Beat appsrc in shape, add signals and actions.
Add some docs.
Add properties for caps, size, seekability and max-buffers.
Fix unlock/stop code.

16 years agogst/volume/gstvolume.c: Return NOT_NEGOTIATED if we didn't set a process function...
Sebastian Dröge [Tue, 6 May 2008 12:35:09 +0000 (12:35 +0000)]
gst/volume/gstvolume.c: Return NOT_NEGOTIATED if we didn't set a process function yet for some reason instead of cras...

Original commit message from CVS:
* gst/volume/gstvolume.c: (volume_transform_ip):
Return NOT_NEGOTIATED if we didn't set a process function yet for some
reason instead of crashing later. Might fix bug #509125.

16 years agogst/audioconvert/: Add support for more than 8 channels and NONE channel layouts...
Tim-Philipp Müller [Tue, 6 May 2008 12:12:16 +0000 (12:12 +0000)]
gst/audioconvert/: Add support for more than 8 channels and NONE channel layouts. For more than 8 channels no channel...

Original commit message from CVS:
Based on a patch by: Tim-Philipp Müller  <tim.muller at collabora co uk>
* gst/audioconvert/audioconvert.c: (audio_convert_prepare_context):
* gst/audioconvert/audioconvert.h:
* gst/audioconvert/gstaudioconvert.c:
(gst_audio_convert_parse_caps),
(structure_has_fixed_channel_positions),
(gst_audio_convert_transform_caps):
* gst/audioconvert/gstchannelmix.c: (gst_channel_mix_fill_matrix):
Add support for more than 8 channels and NONE channel layouts. For
more than 8 channels no channel conversion is supported yet, only
format conversions are supported. Fixes bug #398033.
* tests/check/elements/audioconvert.c: (verify_convert),
(GST_START_TEST), (audioconvert_suite):
Add some unit tests by Tim for checking the NONE channel layouts
and more than 8 channels and add some more unit tests for channel
conversions.

16 years agogst/playback/gstdecodebin2.c: When autoplugging fails, set the element back to NULL...
Wim Taymans [Tue, 6 May 2008 10:16:49 +0000 (10:16 +0000)]
gst/playback/gstdecodebin2.c: When autoplugging fails, set the element back to NULL before unreffing it.

Original commit message from CVS:
* gst/playback/gstdecodebin2.c: (connect_pad):
When autoplugging fails, set the element back to NULL before
unreffing it.

16 years agowin32/common/libgstaudio.def: Add gst_base_audio_src_[sg]et_slave_method() to the...
Sebastian Dröge [Tue, 6 May 2008 09:59:43 +0000 (09:59 +0000)]
win32/common/libgstaudio.def: Add gst_base_audio_src_[sg]et_slave_method() to the exported symbols.

Original commit message from CVS:
* win32/common/libgstaudio.def:
Add gst_base_audio_src_[sg]et_slave_method() to the exported
symbols.

16 years agogst/subparse/samiparse.c: Remove trailing, leading and double whitespaces.
Sebastian Dröge [Mon, 5 May 2008 12:33:05 +0000 (12:33 +0000)]
gst/subparse/samiparse.c: Remove trailing, leading and double whitespaces.

Original commit message from CVS:
* gst/subparse/samiparse.c: (handle_start_sync),
(end_sami_element), (characters_sami):
Remove trailing, leading and double whitespaces.
Correctly timestamp buffers and output the last buffer too.
* tests/check/elements/subparse.c: (GST_START_TEST),
(subparse_suite):
Add a simple unit test for SAMI parsing.

16 years agogst/subparse/samiparse.c: Only output characters inside the "sync" elements. There...
Young-Ho Cha [Mon, 5 May 2008 11:14:48 +0000 (11:14 +0000)]
gst/subparse/samiparse.c: Only output characters inside the "sync" elements. There could be other elements like "styl...

Original commit message from CVS:
Patch by: Young-Ho Cha <ganadist at chollian dot net>
* gst/subparse/samiparse.c: (handle_start_sync),
(start_sami_element), (end_sami_element), (characters_sami),
(sami_context_reset):
Only output characters inside the "sync" elements. There could be
other elements like "style" that have some content but should
not be printed. Fixes bug #467911.

16 years agogst-libs/gst/app/gstappsink.*: Start some docs.
Wim Taymans [Mon, 5 May 2008 10:27:45 +0000 (10:27 +0000)]
gst-libs/gst/app/gstappsink.*: Start some docs.

Original commit message from CVS:
* gst-libs/gst/app/gstappsink.c: (gst_app_sink_class_init),
(gst_app_sink_init), (gst_app_sink_set_property),
(gst_app_sink_get_property), (gst_app_sink_unlock_start),
(gst_app_sink_unlock_stop), (gst_app_sink_flush_unlocked),
(gst_app_sink_start), (gst_app_sink_stop), (gst_app_sink_event),
(gst_app_sink_preroll), (gst_app_sink_render),
(gst_app_sink_set_caps), (gst_app_sink_set_drop),
(gst_app_sink_get_drop):
* gst-libs/gst/app/gstappsink.h:
Start some docs.
Add property to drop buffers when the queue is filled
Fix unlocking and flushing when the queues are filled.

16 years agogst/playback/: Allow setting -1 as current-audio to mute the current audio stream...
Sebastian Dröge [Mon, 5 May 2008 10:03:51 +0000 (10:03 +0000)]
gst/playback/: Allow setting -1 as current-audio to mute the current audio stream, similar to what is done for subtit...

Original commit message from CVS:
* gst/playback/gstplaybasebin.c: (set_audio_mute),
(set_active_source):
* gst/playback/gstplaybasebin.h:
* gst/playback/gstplaybin.c: (gst_play_bin_class_init),
(playbin_set_audio_mute):
Allow setting -1 as current-audio to mute the current audio stream,
similar to what is done for subtitles. Fixes bug #342294.

16 years agogst-libs/gst/pbutils/descriptions.c: It's SorensOn and not SorensEn.
Edward Hervey [Mon, 5 May 2008 07:41:03 +0000 (07:41 +0000)]
gst-libs/gst/pbutils/descriptions.c: It's SorensOn and not SorensEn.

Original commit message from CVS:
* gst-libs/gst/pbutils/descriptions.c: (formats):
It's SorensOn and not SorensEn.

16 years agogst-libs/gst/pbutils/descriptions.c: Fix description of video/x-flash-video.
Tim-Philipp Müller [Sun, 4 May 2008 15:23:36 +0000 (15:23 +0000)]
gst-libs/gst/pbutils/descriptions.c: Fix description of video/x-flash-video.

Original commit message from CVS:
* gst-libs/gst/pbutils/descriptions.c: (formats):
Fix description of video/x-flash-video.

16 years agoRemove some unused code.
Sebastian Dröge [Sun, 4 May 2008 15:02:20 +0000 (15:02 +0000)]
Remove some unused code.

Original commit message from CVS:
* gst-libs/gst/audio/gstaudiosink.c: (audioringbuffer_thread_func):
* gst-libs/gst/audio/gstaudiosrc.c: (audioringbuffer_thread_func):
* gst/tcp/gsttcp.c: (gst_tcp_socket_write):
* sys/v4l/v4lsrc_calls.c: (gst_v4lsrc_get_fps_list):
Remove some unused code.
* gst/audioconvert/gstaudioquantize.c:
(gst_audio_quantize_free_noise_shaping):
Don't return before freeing the noise shaping history.

16 years agotests/check/elements/subparse.c: Add unit test for the tmplayer variant from bug...
Tim-Philipp Müller [Sat, 3 May 2008 16:00:04 +0000 (16:00 +0000)]
tests/check/elements/subparse.c: Add unit test for the tmplayer variant from bug #530962.

Original commit message from CVS:
* tests/check/elements/subparse.c: (do_test),
(test_tmplayer_style3b), (subparse_suite):
Add unit test for the tmplayer variant from bug #530962.

16 years agogst/subparse/: Fix parsing of tmplayer subtitle variant where every single line conta...
Tim-Philipp Müller [Sat, 3 May 2008 15:45:23 +0000 (15:45 +0000)]
gst/subparse/: Fix parsing of tmplayer subtitle variant where every single line contains text and there isn't an empt...

Original commit message from CVS:
* gst/subparse/gstsubparse.c: (handle_buffer),
(gst_sub_parse_sink_event):
* gst/subparse/tmplayerparse.c: (tmplayer_process_buffer),
(tmplayer_parse_line):
Fix parsing of tmplayer subtitle variant where every single line contains
text and there isn't an empty line after each line to determine the
duration (#530962). Improve EOS handling for tmplayer subtitles a bit by
making sure that we push out the last line of text without a duration if
there's still text left in the buffer at the end.

16 years agogst/subparse/gstsubparse.c: Fix detection of discontinuities based on the buffer...
Tim-Philipp Müller [Sat, 3 May 2008 15:39:04 +0000 (15:39 +0000)]
gst/subparse/gstsubparse.c: Fix detection of discontinuities based on the buffer offset (doesn't work so well if no b...

Original commit message from CVS:
* gst/subparse/gstsubparse.c: (feed_textbuf):
Fix detection of discontinuities based on the buffer offset (doesn't work
so well if no buffer offset is set) and also check for the DISCONT buffer
flag. This keeps the parser state from being reset after each buffer in
the unit test.

16 years agogst/typefind/gsttypefindfunctions.c: Further fine-tuning: don't absolutely require...
Tim-Philipp Müller [Sat, 3 May 2008 12:09:16 +0000 (12:09 +0000)]
gst/typefind/gsttypefindfunctions.c: Further fine-tuning: don't absolutely require sequence or GOP headers but adjust...

Original commit message from CVS:
* gst/typefind/gsttypefindfunctions.c: (mpeg_video_stream_type_find):
Further fine-tuning: don't absolutely require sequence or GOP headers
(as introduced in the previous commit), but adjust the typefind
probabilities returned accordingly if we don't see them. Also make sure
picture header and first slice are somewhat close to each other (which
is not perfect but still better than requiring a fixed offset or having
no limit at all).

16 years agogst-libs/gst/rtp/gstbasertppayload.c: Rename the setcaps/getcaps function internally...
Wim Taymans [Fri, 2 May 2008 12:13:08 +0000 (12:13 +0000)]
gst-libs/gst/rtp/gstbasertppayload.c: Rename the setcaps/getcaps function internally to make it clear that they are c...

Original commit message from CVS:
* gst-libs/gst/rtp/gstbasertppayload.c: (gst_basertppayload_init),
(gst_basertppayload_sink_setcaps),
(gst_basertppayload_sink_getcaps):
Rename the setcaps/getcaps function internally to make it clear that
they are called for the sink pad.

16 years agogst-libs/gst/rtp/gstbasertpdepayload.*: Catch packet-lost events from the jitterbuffe...
Wim Taymans [Fri, 2 May 2008 12:11:07 +0000 (12:11 +0000)]
gst-libs/gst/rtp/gstbasertpdepayload.*: Catch packet-lost events from the jitterbuffer and convert them into a vmetho...

Original commit message from CVS:
* gst-libs/gst/rtp/gstbasertpdepayload.c:
(gst_base_rtp_depayload_class_init),
(gst_base_rtp_depayload_handle_sink_event), (create_segment_event),
(gst_base_rtp_depayload_packet_lost),
(gst_base_rtp_depayload_set_gst_timestamp):
* gst-libs/gst/rtp/gstbasertpdepayload.h:
Catch packet-lost events from the jitterbuffer and convert them into a
vmethod call (lost-packet) so that depayloaders can do something smart.
Also add a default packet-lost function that sends out a segment update
to the decoders.

16 years agogst/playback/: Also include config.h when relying on defines from it. Fixes the build...
Stefan Kost [Fri, 2 May 2008 11:13:05 +0000 (11:13 +0000)]
gst/playback/: Also include config.h when relying on defines from it. Fixes the build. Its been a please to serve :)

Original commit message from CVS:
* gst/playback/test4.c:
* gst/playback/test5.c:
* gst/playback/test6.c:
* gst/playback/test7.c:
Also include config.h when relying on defines from it. Fixes the
build. Its been a please to serve :)

16 years agoAdd support for NV12 and NV21 in videotestsrc
Thijs Vermeir [Fri, 2 May 2008 10:54:51 +0000 (10:54 +0000)]
Add support for NV12 and NV21 in videotestsrc

Original commit message from CVS:
* gst/videotestsrc/videotestsrc.c (paint_setup_NV12),
(paint_setup_NV21), (paint_hline_NV12_NV21):
Add support for NV12 and NV21 in videotestsrc

16 years agogst/videoscale/: Support 1x1 images as input and output as for example the BBC HQ...
Sebastian Dröge [Fri, 2 May 2008 10:02:05 +0000 (10:02 +0000)]
gst/videoscale/: Support 1x1 images as input and output as for example the BBC HQ new streams have 1x1 GIFs in the pl...

Original commit message from CVS:
* gst/videoscale/gstvideoscale.c:
* gst/videoscale/vs_4tap.c: (vs_image_scale_4tap_Y):
* gst/videoscale/vs_image.c: (vs_image_scale_nearest_RGBA),
(vs_image_scale_linear_RGBA), (vs_image_scale_nearest_RGB),
(vs_image_scale_linear_RGB), (vs_image_scale_nearest_YUYV),
(vs_image_scale_linear_YUYV), (vs_image_scale_nearest_UYVY),
(vs_image_scale_linear_UYVY), (vs_image_scale_nearest_Y),
(vs_image_scale_linear_Y), (vs_image_scale_nearest_RGB565),
(vs_image_scale_linear_RGB565), (vs_image_scale_nearest_RGB555),
(vs_image_scale_linear_RGB555):
Support 1x1 images as input and output as for example the BBC HQ new
streams have 1x1 GIFs in the playlists for some reason.

16 years agogst/playback/gstdecodebin.c: If we can't activate one of the decoders we plugged...
Tim-Philipp Müller [Thu, 1 May 2008 19:11:42 +0000 (19:11 +0000)]
gst/playback/gstdecodebin.c: If we can't activate one of the decoders we plugged in (such as, say, musepackdec) for s...

Original commit message from CVS:
* gst/playback/gstdecodebin.c: (free_pad_probe_for_element),
(try_to_link_1):
If we can't activate one of the decoders we plugged in (such as,
say, musepackdec) for some reason (it might not support push mode,
for example), remove any pad probes that close_pad_link() might
have set up. This makes sure we later don't try to remove a probe
for a pad that doesn't exist any longer, and avoids nast warnings
and probably other things too.

16 years agogst/typefind/gsttypefindfunctions.c: Rework mpeg video stream typefinding a bit more...
Tim-Philipp Müller [Wed, 30 Apr 2008 20:54:56 +0000 (20:54 +0000)]
gst/typefind/gsttypefindfunctions.c: Rework mpeg video stream typefinding a bit more: make sure sequence,

Original commit message from CVS:
* gst/typefind/gsttypefindfunctions.c:
(mpeg_video_stream_ctx_ensure_data), (mpeg_video_stream_type_find),
(plugin_init):
Rework mpeg video stream typefinding a bit more: make sure sequence,
GOP, picture and slice headers appear in the order they should and
that we've in fact at least had one of each; fix picture header
detection; decouple picture and slice header check - don't assume
they're at a fixed offset, there may be extra data in between. Also,
announce varying degrees of probability depending on what we found
exactly (multiple pictures, at least one picture, just sequence and
GOP headers). Finally, in _ensure_data(), take into account that we
might be typefinding smaller amounts of data, such as the first
buffer of a stream, so fall back to the minimum size needed as long
as that's available, instead of erroring out if there's less than
2kB of data. Fixes #526173. Conveniently also doesn't recognise the
fuzzed file from #399342 as valid.

16 years agoext/theora/theoradec.c: Cool kids don't divide by zero.
Michael Smith [Wed, 30 Apr 2008 17:06:45 +0000 (17:06 +0000)]
ext/theora/theoradec.c: Cool kids don't divide by zero.

Original commit message from CVS:
* ext/theora/theoradec.c:
Cool kids don't divide by zero.
Treat PAR of x:0 as 1:1.
Fixes #530719.

16 years agogst/typefind/gsttypefindfunctions.c: Refactor a bit: use context structure to track...
Tim-Philipp Müller [Wed, 30 Apr 2008 14:37:52 +0000 (14:37 +0000)]
gst/typefind/gsttypefindfunctions.c: Refactor a bit: use context structure to track parsing offset and size of availa...

Original commit message from CVS:
* gst/typefind/gsttypefindfunctions.c: (MpegVideoStreamCtx),
(mpeg_video_stream_ctx_advance), (mpeg_video_stream_ctx_ensure_data),
(mpeg_video_stream_type_find):
Refactor a bit: use context structure to track parsing offset and size of
available data and make the code a bit clearer. Fixes bad memory access
in #356937.

16 years agogst/: Include stdlib.h and unistd.h only if the appropriate HAVE_*_H macro is defined.
Michael Smith [Mon, 28 Apr 2008 22:18:49 +0000 (22:18 +0000)]
gst/: Include stdlib.h and unistd.h only if the appropriate HAVE_*_H macro is defined.

Original commit message from CVS:
* gst/playback/test4.c:
* gst/playback/test5.c:
* gst/playback/test6.c:
* gst/tcp/gstmultifdsink.c:
Include stdlib.h and unistd.h only if the appropriate HAVE_*_H macro
is defined.

16 years agogst-libs/gst/audio/gstbaseaudiosink.h: Clarify some docs.
Wim Taymans [Mon, 28 Apr 2008 08:51:38 +0000 (08:51 +0000)]
gst-libs/gst/audio/gstbaseaudiosink.h: Clarify some docs.

Original commit message from CVS:
* gst-libs/gst/audio/gstbaseaudiosink.h:
Clarify some docs.
* gst-libs/gst/audio/gstbaseaudiosrc.c: (slave_method_get_type),
(gst_base_audio_src_class_init), (gst_base_audio_src_init),
(gst_base_audio_src_set_slave_method),
(gst_base_audio_src_get_slave_method),
(gst_base_audio_src_set_property),
(gst_base_audio_src_get_property), (gst_base_audio_src_create):
* gst-libs/gst/audio/gstbaseaudiosrc.h:
Add property and methods for selecting the clock slave method in the
source, like in the sink.
We only implement "none" and "re-timestamp" for now.
API: gst_base_audio_src_set_slave_method()
API: gst_base_audio_src_get_slave_method()

16 years agogst-libs/gst/app/gstappsink.*: Add more docs.
Wim Taymans [Fri, 25 Apr 2008 18:18:47 +0000 (18:18 +0000)]
gst-libs/gst/app/gstappsink.*: Add more docs.

Original commit message from CVS:
* gst-libs/gst/app/gstappsink.c: (gst_app_sink_class_init),
(gst_app_sink_init), (gst_app_sink_set_property),
(gst_app_sink_get_property), (gst_app_sink_event),
(gst_app_sink_preroll), (gst_app_sink_render),
(gst_app_sink_set_emit_signals), (gst_app_sink_get_emit_signals),
(gst_app_sink_set_max_buffers), (gst_app_sink_get_max_buffers),
(gst_app_sink_pull_buffer):
* gst-libs/gst/app/gstappsink.h:
Add more docs.
Add signals for when preroll and render buffers are available.
Add property to control signal emission.
Add property to control the max queue size.

16 years agogst-libs/gst/rtp/gstrtpbuffer.c: Fix the docs about the seqnum compare function,...
Wim Taymans [Fri, 25 Apr 2008 07:37:09 +0000 (07:37 +0000)]
gst-libs/gst/rtp/gstrtpbuffer.c: Fix the docs about the seqnum compare function, it returns a difference.

Original commit message from CVS:
* gst-libs/gst/rtp/gstrtpbuffer.c:
Fix the docs about the seqnum compare function, it returns a difference.

16 years agoext/alsa/gstalsadeviceprobe.c: Don't return before freeing up the allocated structures.
Edward Hervey [Thu, 24 Apr 2008 09:27:35 +0000 (09:27 +0000)]
ext/alsa/gstalsadeviceprobe.c: Don't return before freeing up the allocated structures.

Original commit message from CVS:
* ext/alsa/gstalsadeviceprobe.c:
(gst_alsa_get_device_list): Don't return before freeing up
the allocated structures.

16 years agogst/playback/gstplaybin.c: Remove obsolete streaminfo code and fix a leak. Fixes...
Stefan Kost [Thu, 24 Apr 2008 08:19:35 +0000 (08:19 +0000)]
gst/playback/gstplaybin.c: Remove obsolete streaminfo code and fix a leak. Fixes #529546

Original commit message from CVS:
* gst/playback/gstplaybin.c:
Remove obsolete streaminfo code and fix a leak. Fixes #529546

16 years agoext/ogg/gstoggdemux.c: Revert the event part, that should not go in.
Stefan Kost [Wed, 23 Apr 2008 13:50:34 +0000 (13:50 +0000)]
ext/ogg/gstoggdemux.c: Revert the event part, that should not go in.

Original commit message from CVS:
* ext/ogg/gstoggdemux.c:
Revert the event part, that should not go in.

16 years agoext/ogg/gstoggdemux.c: Don't leak GstPluginFeatures when filtering.
Stefan Kost [Wed, 23 Apr 2008 13:45:29 +0000 (13:45 +0000)]
ext/ogg/gstoggdemux.c: Don't leak GstPluginFeatures when filtering.

Original commit message from CVS:
* ext/ogg/gstoggdemux.c:
Don't leak GstPluginFeatures when filtering.

16 years agosys/xvimage/xvimagesink.c: Add some logging for cases when grabbing the xv failed.
Stefan Kost [Wed, 23 Apr 2008 08:58:42 +0000 (08:58 +0000)]
sys/xvimage/xvimagesink.c: Add some logging for cases when grabbing the xv failed.

Original commit message from CVS:
* sys/xvimage/xvimagesink.c:
Add some logging for cases when grabbing the xv failed.

16 years agoext/ogg/gstoggmux.c: Update Ogg/Dirac muxing. Removes the weird "KW-DIRAC" bos packe...
David Schleef [Tue, 22 Apr 2008 06:18:04 +0000 (06:18 +0000)]
ext/ogg/gstoggmux.c: Update Ogg/Dirac muxing.  Removes the weird "KW-DIRAC" bos packet.  Should conform to what we cu...

Original commit message from CVS:
* ext/ogg/gstoggmux.c:
Update Ogg/Dirac muxing.  Removes the weird "KW-DIRAC" bos
packet.  Should conform to what we currently think is the
final Ogg/Dirac muxing spec.

16 years agosys/xvimage/xvimagesink.c: Fix typo that causes the overlay keying color to bright...
David Schleef [Tue, 22 Apr 2008 06:13:43 +0000 (06:13 +0000)]
sys/xvimage/xvimagesink.c: Fix typo that causes the overlay keying color to bright green on a 16-bit display.  Dark g...

Original commit message from CVS:
* sys/xvimage/xvimagesink.c:
Fix typo that causes the overlay keying color to bright green
on a 16-bit display.  Dark grey good.  Bright green bad.

16 years agoext/gnomevfs/gstgnomevfsuri.c: Add FIXME comment about using uri-list for source...
Stefan Kost [Mon, 21 Apr 2008 13:47:06 +0000 (13:47 +0000)]
ext/gnomevfs/gstgnomevfsuri.c: Add  FIXME comment about using uri-list for source and sink.

Original commit message from CVS:
* ext/gnomevfs/gstgnomevfsuri.c:
Add  FIXME comment about using uri-list for source and sink.

16 years agoext/ogg/gstogmparse.c: GST_TYPE_FRACTION contains gints so correctly cast gint64...
Sebastian Dröge [Sun, 20 Apr 2008 11:42:37 +0000 (11:42 +0000)]
ext/ogg/gstogmparse.c: GST_TYPE_FRACTION contains gints so correctly cast gint64 arguments to vaargs functions to gin...

Original commit message from CVS:
* ext/ogg/gstogmparse.c: (gst_ogm_parse_stream_header):
GST_TYPE_FRACTION contains gints so correctly cast gint64 arguments to
vaargs functions to gint. Otherwise the fractions will get 0 set
instead of the correct value on big endian systems. Fixes bug #529018.

16 years agoext/gnomevfs/: Get the list of supported URI schemes in a threadsafe way and use...
Sebastian Dröge [Sun, 20 Apr 2008 10:17:23 +0000 (10:17 +0000)]
ext/gnomevfs/: Get the list of supported URI schemes in a threadsafe way and use the same list for the source and sink.

Original commit message from CVS:
* ext/gnomevfs/gstgnomevfssink.c:
(gst_gnome_vfs_sink_uri_get_protocols):
* ext/gnomevfs/gstgnomevfssrc.c:
(gst_gnome_vfs_src_uri_get_protocols):
* ext/gnomevfs/gstgnomevfsuri.c: (_internal_get_supported_uris),
(gst_gnomevfs_get_supported_uris):
Get the list of supported URI schemes in a threadsafe way and use the
same list for the source and sink.

16 years agoext/gio/gstgio.c: Don't generate a new supported protocols list on each call but...
Sebastian Dröge [Sun, 20 Apr 2008 10:11:54 +0000 (10:11 +0000)]
ext/gio/gstgio.c: Don't generate a new supported protocols list on each call but cache it. It's supposed to be static...

Original commit message from CVS:
* ext/gio/gstgio.c: (_internal_get_supported_protocols),
(gst_gio_get_supported_protocols):
Don't generate a new supported protocols list on each call but cache
it. It's supposed to be static anyway, this way we only leak it once
per process.
* ext/gio/gstgiosink.c: (gst_gio_sink_base_init),
(gst_gio_sink_class_init), (gst_gio_sink_finalize),
(gst_gio_sink_set_property), (gst_gio_sink_get_property),
(gst_gio_sink_start):
* ext/gio/gstgiosink.h:
* ext/gio/gstgiosrc.c: (gst_gio_src_base_init),
(gst_gio_src_class_init), (gst_gio_src_finalize),
(gst_gio_src_set_property), (gst_gio_src_get_property),
(gst_gio_src_start):
* ext/gio/gstgiosrc.h:
API: Add "file" properties where one can set a GFile as source/destination.
Add locking to the properties and use gst_element_class_set_details_simple()
instead of a static GstElementDetails struct.

16 years agogst/typefind/gsttypefindfunctions.c: Add "mpp" and "mp+" as possible extensions for...
Sebastian Dröge [Sat, 19 Apr 2008 20:06:59 +0000 (20:06 +0000)]
gst/typefind/gsttypefindfunctions.c: Add "mpp" and "mp+" as possible extensions for MusePack files.

Original commit message from CVS:
* gst/typefind/gsttypefindfunctions.c: (musepack_type_find),
(plugin_init):
Add "mpp" and "mp+" as possible extensions for MusePack files.
Add typefinding for MusePack StreamVersion 8 files and include the
stream version in the caps.

16 years agogst-libs/gst/rtp/gstrtppayloads.c: Use g_ascii_strcasecmp() instead of the deprecated...
Sebastian Dröge [Sat, 19 Apr 2008 16:33:24 +0000 (16:33 +0000)]
gst-libs/gst/rtp/gstrtppayloads.c: Use g_ascii_strcasecmp() instead of the deprecated g_strcasecmp().

Original commit message from CVS:
* gst-libs/gst/rtp/gstrtppayloads.c:
(gst_rtp_payload_info_for_name):
Use g_ascii_strcasecmp() instead of the deprecated g_strcasecmp().

16 years agoconfigure.ac: Bump Gtk+ requirement to 2.12.0 for gtk_range_set_fill_level (NB: this...
Tim-Philipp Müller [Fri, 18 Apr 2008 17:10:43 +0000 (17:10 +0000)]
configure.ac: Bump Gtk+ requirement to 2.12.0 for gtk_range_set_fill_level (NB: this only affects compilation of some...

Original commit message from CVS:
* configure.ac:
Bump Gtk+ requirement to 2.12.0 for gtk_range_set_fill_level
(NB: this only affects compilation of some of the examples).
Remove some configure.ac cruft that's not needed any longer.

16 years agogst/gdp/gstgdpdepay.c: Don't validate the payload if there isn't any.
Edward Hervey [Fri, 18 Apr 2008 14:54:01 +0000 (14:54 +0000)]
gst/gdp/gstgdpdepay.c: Don't validate the payload if there isn't any.

Original commit message from CVS:
* gst/gdp/gstgdpdepay.c: (gst_gdp_depay_chain):
Don't validate the payload if there isn't any.
Fixes #525915

16 years agogst-libs/gst/audio/gstringbuffer.c: Use g_atomic_int_set() instead of gst_atomic_int_...
Sebastian Dröge [Thu, 17 Apr 2008 07:33:46 +0000 (07:33 +0000)]
gst-libs/gst/audio/gstringbuffer.c: Use g_atomic_int_set() instead of gst_atomic_int_set().

Original commit message from CVS:
* gst-libs/gst/audio/gstringbuffer.c: (gst_ring_buffer_may_start):
Use g_atomic_int_set() instead of gst_atomic_int_set().

16 years agoext/gio/gstgio.c: Return NULL instead of a gchar * array with one NULL element if...
Sebastian Dröge [Thu, 17 Apr 2008 07:29:28 +0000 (07:29 +0000)]
ext/gio/gstgio.c: Return NULL instead of a gchar * array with one NULL element if we don't get any supported URI sche...

Original commit message from CVS:
* ext/gio/gstgio.c: (gst_gio_get_supported_protocols):
Return NULL instead of a gchar * array with one NULL element if we
don't get any supported URI schemes from GIO.

16 years agogst/audiotestsrc/gstaudiotestsrc.c: Remove cpp style commented old code.
Stefan Kost [Tue, 15 Apr 2008 19:06:00 +0000 (19:06 +0000)]
gst/audiotestsrc/gstaudiotestsrc.c: Remove cpp style commented old code.

Original commit message from CVS:
* gst/audiotestsrc/gstaudiotestsrc.c:
Remove cpp style commented old code.

16 years agogst/playback/gstdecodebin2.c: Fix signal docs.
Stefan Kost [Tue, 15 Apr 2008 19:02:10 +0000 (19:02 +0000)]
gst/playback/gstdecodebin2.c: Fix signal docs.

Original commit message from CVS:
* gst/playback/gstdecodebin2.c:
Fix signal docs.

16 years agoext/pango/gsttextoverlay.c: Fix textoverlay unit test again by making the supposed...
Tim-Philipp Müller [Mon, 14 Apr 2008 17:58:19 +0000 (17:58 +0000)]
ext/pango/gsttextoverlay.c: Fix textoverlay unit test again by making the supposed default value for the wait-text pr...

Original commit message from CVS:
* ext/pango/gsttextoverlay.c: (gst_text_overlay_class_init),
(gst_text_overlay_init):
Fix textoverlay unit test again by making the supposed default
value for the wait-text property the actual default value.
Also fix Since: tag for new property.

16 years agogst-libs/gst/video/video.c: Add guards to these functions to ensure sane input values.
Tim-Philipp Müller [Fri, 11 Apr 2008 17:13:52 +0000 (17:13 +0000)]
gst-libs/gst/video/video.c: Add guards to these functions to ensure sane input values.

Original commit message from CVS:
* gst-libs/gst/video/video.c: (gst_video_format_new_caps),
(gst_video_format_to_fourcc), (gst_video_format_get_row_stride),
(gst_video_format_get_pixel_stride),
(gst_video_format_get_component_width),
(gst_video_format_get_component_height),
(gst_video_format_get_component_offset), (gst_video_format_get_size),
(gst_video_format_convert):
Add guards to these functions to ensure sane input values.
* tests/check/libs/video.c:
Fix unit test not to create caps with width=0 and height=0.

16 years agodocs/design/draft-keyframe-force.txt: Fix typo.
Wim Taymans [Fri, 11 Apr 2008 01:25:01 +0000 (01:25 +0000)]
docs/design/draft-keyframe-force.txt: Fix typo.

Original commit message from CVS:
* docs/design/draft-keyframe-force.txt:
Fix typo.
* gst/playback/gstqueue2.c: (update_buffering),
(gst_queue_handle_src_query):
Set buffering mode in the messages.
Set buffering percent in the query.
* tests/examples/seek/seek.c: (update_fill), (msg_state_changed),
(do_stream_buffering), (do_download_buffering), (msg_buffering):
Do some more fancy things based on the buffering method in use.

16 years agotests/examples/seek/seek.c: Add basic download reports to seek using the new bufferin...
Wim Taymans [Wed, 9 Apr 2008 21:42:24 +0000 (21:42 +0000)]
tests/examples/seek/seek.c: Add basic download reports to seek using the new buffering API.

Original commit message from CVS:
* tests/examples/seek/seek.c: (update_fill), (set_update_fill),
(play_cb), (pause_cb), (stop_cb), (msg_state_changed),
(msg_buffering), (main):
Add basic download reports to seek using the new buffering API.

16 years agogst/playback/gstqueue2.c: Include extra buffering stats in the buffering message.
Wim Taymans [Wed, 9 Apr 2008 21:40:17 +0000 (21:40 +0000)]
gst/playback/gstqueue2.c: Include extra buffering stats in the buffering message.

Original commit message from CVS:
* gst/playback/gstqueue2.c: (update_buffering),
(gst_queue_close_temp_location_file), (gst_queue_handle_src_query),
(gst_queue_src_checkgetrange_function):
Include extra buffering stats in the buffering message.
Implement BUFFERING query.
* gst/playback/gsturidecodebin.c: (do_async_start),
(do_async_done), (type_found), (setup_streaming), (setup_source),
(gst_uri_decode_bin_change_state):
Only add decodebin2 when the type is found in streaming mode.
Make uridecodebin async to PAUSED even when we don't have decodebin2
added yet.

16 years agoext/gio/gstgio.c: Filter cdda from the supported URI schemes. We can't support musicb...
Sebastian Dröge [Wed, 9 Apr 2008 08:38:19 +0000 (08:38 +0000)]
ext/gio/gstgio.c: Filter cdda from the supported URI schemes. We can't support musicbrainz tags and everything else o...

Original commit message from CVS:
* ext/gio/gstgio.c: (gst_gio_get_supported_protocols):
Filter cdda from the supported URI schemes. We can't support
musicbrainz tags and everything else one expects from a cdda source
with GIO. Fixes bug #526794.

16 years agoFix calculation of 'expected size' for YV12 buffers.
Jan Schmidt [Mon, 7 Apr 2008 22:37:26 +0000 (22:37 +0000)]
Fix calculation of 'expected size' for YV12 buffers.

Original commit message from CVS:
2008-04-07  Jan Schmidt  <jan.schmidt@sun.com>

* sys/xvimage/xvimagesink.c (gst_xvimagesink_xvimage_new),
(gst_xvimagesink_buffer_alloc):
Fix calculation of 'expected size' for YV12 buffers.
Be a little more verbose in the debug output for buffer-alloc'ed
buffers which turn out to have the wrong size.

16 years agoFix calculation of 'expected size' for YV12 buffers.
Jan Schmidt [Mon, 7 Apr 2008 22:26:50 +0000 (22:26 +0000)]
Fix calculation of 'expected size' for YV12 buffers.

Original commit message from CVS:
* sys/xvimage/xvimagesink.c (gst_xvimagesink_xvimage_new),
(gst_xvimagesink_buffer_alloc):
Fix calculation of 'expected size' for YV12 buffers.
Be a little more verbose in the debug output for buffer-alloc'ed
buffers which turn out to have the wrong size.

16 years agoMerge other changes from 0.10.19 release branch.
Tim-Philipp Müller [Mon, 7 Apr 2008 10:50:11 +0000 (10:50 +0000)]
Merge other changes from 0.10.19 release branch.

Original commit message from CVS:
* NEWS:
* RELEASE:
* gst-plugins-base.doap:
Merge other changes from 0.10.19 release branch.

16 years agogst/: Work around missing bits of thread-safety on older GLibs some more to avoid...
Tim-Philipp Müller [Sun, 6 Apr 2008 20:16:27 +0000 (20:16 +0000)]
gst/: Work around missing bits of thread-safety on older GLibs some more to avoid assertions when starting up multipl...

Original commit message from CVS:
* gst-libs/gst/audio/gstbaseaudiosink.c:
(gst_base_audio_sink_class_init):
* gst-libs/gst/audio/gstbaseaudiosrc.c:
(gst_base_audio_src_class_init):
* gst/playback/gstplayback.c: (plugin_init):
* gst/volume/gstvolume.c: (plugin_init):
Work around missing bits of thread-safety on older GLibs some
more to avoid assertions when starting up multiple playbin
objects concurrently (see #512382).

16 years agogst-libs/gst/pbutils/missing-plugins.c: Remove some more fields.
Tim-Philipp Müller [Sun, 6 Apr 2008 17:19:39 +0000 (17:19 +0000)]
gst-libs/gst/pbutils/missing-plugins.c: Remove some more fields.

Original commit message from CVS:
* gst-libs/gst/pbutils/missing-plugins.c: (copy_and_clean_caps):
Remove some more fields.

16 years agoconfigure.ac: Actually build dlls when cross-compiling with mingw32.
Damien Lespiau [Sun, 6 Apr 2008 08:56:07 +0000 (08:56 +0000)]
configure.ac: Actually build dlls when cross-compiling with mingw32.

Original commit message from CVS:
Patch by: Damien Lespiau <damien dot lespiau at gmail dot com>
* configure.ac:
Actually build dlls when cross-compiling with mingw32.
Fixes bug #526247.

16 years agoconfigure.ac: Bump version to 0.10.19.1 after the unplanned 0.10.19 release.
Tim-Philipp Müller [Thu, 3 Apr 2008 23:01:11 +0000 (23:01 +0000)]
configure.ac: Bump version to 0.10.19.1 after the unplanned 0.10.19 release.

Original commit message from CVS:
* configure.ac:
Bump version to 0.10.19.1 after the unplanned 0.10.19 release.

16 years agotests/examples/seek/seek.c: Add statusbar.
Wim Taymans [Thu, 3 Apr 2008 16:10:53 +0000 (16:10 +0000)]
tests/examples/seek/seek.c: Add statusbar.

Original commit message from CVS:
* tests/examples/seek/seek.c: (play_cb), (pause_cb), (stop_cb),
(msg_buffering), (connect_bus_signals), (main):
Add statusbar.
Add buffering support with feedback in the statusbar.

16 years agoext/ogg/gstoggmux.c: Fix sample pipeline description.
Tim-Philipp Müller [Thu, 3 Apr 2008 15:58:37 +0000 (15:58 +0000)]
ext/ogg/gstoggmux.c: Fix sample pipeline description.

Original commit message from CVS:
* ext/ogg/gstoggmux.c:
Fix sample pipeline description.