Sebastian Dröge [Wed, 21 May 2008 11:10:32 +0000 (11:10 +0000)]
win32/common/libgstbase.def: Add gst_base_sink_wait_clock() to the exported symbols.
Original commit message from CVS:
* win32/common/libgstbase.def:
Add gst_base_sink_wait_clock() to the exported symbols.
Tim-Philipp Müller [Tue, 20 May 2008 08:28:24 +0000 (08:28 +0000)]
libs/gst/base/gstbasetransform.c: Unref events that the GstBaseTransform::event vfunc didn't want to have forwarded b...
Original commit message from CVS:
Patch by: Tim-Philipp Müller <tim.muller at collabora co uk>
* libs/gst/base/gstbasetransform.c:
(gst_base_transform_sink_event):
Unref events that the GstBaseTransform::event vfunc didn't want to
have forwarded by the base class. Closes a leak in identity.
Fixes bug #446763.
Wim Taymans [Mon, 19 May 2008 16:36:51 +0000 (16:36 +0000)]
Expose a method that was previously used internally to synchronize against the clock because it can be useful for sub...
Original commit message from CVS:
* docs/libs/gstreamer-libs-sections.txt:
* libs/gst/base/gstbasesink.c: (gst_base_sink_wait_clock):
* libs/gst/base/gstbasesink.h:
Expose a method that was previously used internally to synchronize
against the clock because it can be useful for subclasses too.
GstBaseSink::gst_base_sink_wait_clock()
Tim-Philipp Müller [Mon, 19 May 2008 11:59:34 +0000 (11:59 +0000)]
gst/gstpad.c: Add sanity check to make sure we don't get smaller buffers than requested (and fallback to normal buffe...
Original commit message from CVS:
* gst/gstpad.c: (gst_pad_buffer_alloc_unchecked):
Add sanity check to make sure we don't get smaller buffers
than requested (and fallback to normal buffer alloc if we do).
Wim Taymans [Mon, 19 May 2008 11:11:49 +0000 (11:11 +0000)]
libs/gst/base/gstbasesink.c: Refactor adjusting the running_time with latency and offset into a separate method.
Original commit message from CVS:
* libs/gst/base/gstbasesink.c: (gst_base_sink_adjust_time),
(gst_base_sink_wait_clock), (gst_base_sink_wait_eos),
(gst_base_sink_do_sync), (gst_base_sink_chain_unlocked):
Refactor adjusting the running_time with latency and offset into a
separate method.
When doing clipping, we still want to use the subclass get_times method,
just in case the DURATION or TIMESTAMP are not set.
Tim-Philipp Müller [Mon, 19 May 2008 10:46:44 +0000 (10:46 +0000)]
API: add gst_type_find_suggest_simple(), #533740.
Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
* gst/gsttypefind.c: (gst_type_find_suggest_simple):
* gst/gsttypefind.h:
* win32/common/libgstreamer.def:
API: add gst_type_find_suggest_simple(), #533740.
Tim-Philipp Müller [Mon, 19 May 2008 10:29:57 +0000 (10:29 +0000)]
libs/gst/base/gstbasesrc.c: Use right error code when typefinding fails, so we can use the default (translated) error...
Original commit message from CVS:
* libs/gst/base/gstbasesrc.c: (gst_base_src_start):
Use right error code when typefinding fails, so we can use
the default (translated) error messages.
Wim Taymans [Mon, 19 May 2008 10:03:09 +0000 (10:03 +0000)]
libs/gst/base/gstbasesrc.c: When the subclass did not set caps on outgoing buffers, configure the caps we negotiated ...
Original commit message from CVS:
* libs/gst/base/gstbasesrc.c: (gst_base_src_get_range),
(gst_base_src_start):
When the subclass did not set caps on outgoing buffers, configure the
caps we negotiated on the source pad.
When the typefind helper does not find caps, error out properly instead
of doing things with NULL caps.
Tim-Philipp Müller [Sun, 18 May 2008 18:53:50 +0000 (18:53 +0000)]
gst/gsttypefind.h: Tabs to spaces, oh yes!
Original commit message from CVS:
* gst/gsttypefind.h:
Tabs to spaces, oh yes!
Tim-Philipp Müller [Sun, 18 May 2008 12:13:42 +0000 (12:13 +0000)]
ChangeLog surgery
Original commit message from CVS:
ChangeLog surgery
Tim-Philipp Müller [Sun, 18 May 2008 11:52:39 +0000 (11:52 +0000)]
tests/check/gst/gstcaps.c: Add David's and Benjamin's tests for array subtraction to the unit test suite, which sugge...
Original commit message from CVS:
* tests/check/gst/gstcaps.c: (test_intersect2), (gst_caps_suite):
Add David's and Benjamin's tests for array subtraction to the
unit test suite, which suggests that #147931 is fixed these days.
Tim-Philipp Müller [Sun, 18 May 2008 11:35:43 +0000 (11:35 +0000)]
gst/gstevent.c: Document that gst_event_new_tag() and gst_event_new_navigation() take ownership of the taglist/struct...
Original commit message from CVS:
* gst/gstevent.c:
Document that gst_event_new_tag() and gst_event_new_navigation()
take ownership of the taglist/structure passed to them. (#533635).
Jan Schmidt [Sat, 17 May 2008 17:20:51 +0000 (17:20 +0000)]
docs/Makefile.am: Don't descend into the plugins dir if plugin docs building is disabled.
Original commit message from CVS:
* docs/Makefile.am:
Don't descend into the plugins dir if plugin docs building
is disabled.
* docs/README:
Add a note about the new type:GTypeName syntax for the plugin
documentation .types file.
Sebastian Dröge [Sat, 17 May 2008 13:54:52 +0000 (13:54 +0000)]
gst/gstmessage.*: Mark the debug string parameters as const. Fixes bug #533490.
Original commit message from CVS:
* gst/gstmessage.c: (gst_message_new_error),
(gst_message_new_warning), (gst_message_new_info):
* gst/gstmessage.h:
Mark the debug string parameters as const. Fixes bug #533490.
Sebastian Dröge [Fri, 16 May 2008 21:09:45 +0000 (21:09 +0000)]
libs/gst/base/gsttypefindhelper.c: Sort buffer cache list by end offsets. This makes sure that we don't stop to searc...
Original commit message from CVS:
* libs/gst/base/gsttypefindhelper.c: (helper_find_peek):
Sort buffer cache list by end offsets. This makes sure that we don't
stop to search for a cached buffer that contains the requested data
too early.
Also read a minimum of 4k bytes instead of 512 bytes as this is a bit
more efficient. Fixes bug #459862.
Stefan Kost [Wed, 14 May 2008 18:17:34 +0000 (18:17 +0000)]
gst/gstinfo.c: Explain why we copy the list.
Original commit message from CVS:
* gst/gstinfo.c:
Explain why we copy the list.
* gst/gstpipeline.c:
Improve docs.
* gst/gstutils.c:
Add one debug-log statement to help tracing probelms with linking pads.
Stefan Kost [Wed, 14 May 2008 18:09:01 +0000 (18:09 +0000)]
tests/check/gst/gstinfo.c: Add a test for removing the default log handler. Seems to fail under windows.
Original commit message from CVS:
* tests/check/gst/gstinfo.c:
Add a test for removing the default log handler. Seems to fail under
windows.
Wim Taymans [Wed, 14 May 2008 13:52:59 +0000 (13:52 +0000)]
gst/gstpad.c: Release pad lock before calling out to avoid a possible deadlock.
Original commit message from CVS:
* gst/gstpad.c: (gst_pad_peer_accept_caps):
Release pad lock before calling out to avoid a possible deadlock.
Wim Taymans [Wed, 14 May 2008 10:22:17 +0000 (10:22 +0000)]
gst/parse/grammar.y: Remove unneeded value unset.
Original commit message from CVS:
* gst/parse/grammar.y:
Remove unneeded value unset.
* tests/check/gst/gstvalue.c: (GST_START_TEST), (gst_value_suite):
Add unit test for de/serialization of caps.
Sebastian Dröge [Tue, 13 May 2008 12:54:00 +0000 (12:54 +0000)]
plugins/elements/: Use custom marshalers that take GstMiniObject as first parameter.
Original commit message from CVS:
* plugins/elements/gstfakesink.c:
(marshal_VOID__MINIOBJECT_OBJECT), (gst_fake_sink_class_init):
* plugins/elements/gstfakesrc.c: (marshal_VOID__MINIOBJECT_OBJECT),
(gst_fake_src_class_init):
Use custom marshalers that take GstMiniObject as first parameter.
Using OBJECT as parameter while a GstMiniObject is given will lead
to assertions if built with G_ENABLE_DEBUG. Fixes bug #525532.
Sebastian Dröge [Tue, 13 May 2008 12:38:31 +0000 (12:38 +0000)]
plugins/elements/gsttypefindelement.c: Clean up on FLUSH_STOP and not FLUSH_START. Forward both events immediately.
Original commit message from CVS:
* plugins/elements/gsttypefindelement.c:
(gst_type_find_element_handle_event),
(gst_type_find_element_send_cached_events),
(gst_type_find_element_change_state):
Clean up on FLUSH_STOP and not FLUSH_START. Forward both events
immediately.
Sebastian Dröge [Tue, 13 May 2008 11:45:24 +0000 (11:45 +0000)]
plugins/elements/gsttypefindelement.c: Forward FLUSH_START events immediately and clean up instead of caching them.
Original commit message from CVS:
* plugins/elements/gsttypefindelement.c:
(gst_type_find_handle_src_query), (stop_typefinding),
(gst_type_find_element_handle_event),
(gst_type_find_element_send_cached_events),
(gst_type_find_element_change_state):
Forward FLUSH_START events immediately and clean up instead of
caching them.
Sjoerd Simons [Tue, 13 May 2008 07:11:05 +0000 (07:11 +0000)]
libs/gst/base/gstbasetransform.c: Check the caps of the buffer returned by gst_pad_alloc_buffer() and fall back to de...
Original commit message from CVS:
Patch by: Sjoerd Simons <sjoerd at luon dot net>
* libs/gst/base/gstbasetransform.c:
(gst_base_transform_buffer_alloc):
Check the caps of the buffer returned by gst_pad_alloc_buffer() and
fall back to default negotiation in the chain function if the caps
are different from what was requested. Fixes bug #526768.
Tim-Philipp Müller [Fri, 9 May 2008 20:48:24 +0000 (20:48 +0000)]
No, let's not use g_slice_{dup|copy} here, since they only exist since GLib 2.14 and we still depend only on >= 2.12....
Original commit message from CVS:
* gst/gstsegment.c:
* tests/check/gst/gstsegment.c:
No, let's not use g_slice_{dup|copy} here, since they only exist
since GLib 2.14 and we still depend only on >= 2.12. Also add
unit test for gst_segment_copy().
Tim-Philipp Müller [Fri, 9 May 2008 18:25:44 +0000 (18:25 +0000)]
gst/gstutils.h: Try to fix 'dereferencing type-punned pointer will break strict aliasing rules' warnings with C++ com...
Original commit message from CVS:
* gst/gstutils.h: (GST_BOILERPLATE_FULL):
Try to fix 'dereferencing type-punned pointer will break strict
aliasing rules' warnings with C++ compilers and GLib >= 2.14.0: GLib
changed the default GType typedef from gulong to gsize at some point,
but kept GType typedef'ed to gulong for C++ for ABI reasons; the
g_once_* functions all take a gsize * though, so work around the type
mismatch for C++ by doing everything in gsize and casting to GType
later.
Jan Schmidt [Fri, 9 May 2008 14:02:53 +0000 (14:02 +0000)]
plugins/elements/gstmultiqueue.c: Add documentation for the signals to push our core plugin docs coverage back up to ...
Original commit message from CVS:
* plugins/elements/gstmultiqueue.c:
Add documentation for the signals to push our core plugin docs
coverage back up to 100%.
Ole André Vadla Ravnås [Thu, 8 May 2008 14:23:16 +0000 (14:23 +0000)]
gst/gstinfo.h (GST_FUNCTION): Reverted GST_FUNCTION to the old version as we don't want the full signature in C++ cod...
Original commit message from CVS:
* gst/gstinfo.h (GST_FUNCTION):
Reverted GST_FUNCTION to the old version as we don't want the
full signature in C++ code. Also added support for MSVC.
Sebastian Dröge [Thu, 8 May 2008 11:37:03 +0000 (11:37 +0000)]
gst/gstutils.h: Intern the type name string, similar to what G_DEFINE_TYPE does.
Original commit message from CVS:
* gst/gstutils.h:
Intern the type name string, similar to what G_DEFINE_TYPE does.
Sebastian Dröge [Thu, 8 May 2008 11:27:56 +0000 (11:27 +0000)]
gst/gstutils.h: Make GST_BOILERPLATE thread-safe if building with GLib 2.14 or newer.
Original commit message from CVS:
* gst/gstutils.h:
Make GST_BOILERPLATE thread-safe if building with GLib 2.14 or newer.
Sjoerd Simons [Thu, 8 May 2008 05:55:34 +0000 (05:55 +0000)]
libs/gst/base/gstbasetransform.c: Don't passthrough buffer allocation too easily if the caps change.
Original commit message from CVS:
Based on a patch by: Sjoerd Simons <sjoerd at luon dot net>
* libs/gst/base/gstbasetransform.c:
(gst_base_transform_buffer_alloc):
Don't passthrough buffer allocation too easily if the caps change.
This breaks when working in passthrough mode and upstream changes
it's caps. Fixes bug #526768.
Ole André Vadla Ravnås [Wed, 7 May 2008 19:24:44 +0000 (19:24 +0000)]
gst/gstinfo.c (gst_debug_log_valist): Improved the __FILE__ part of debug output for MSVC.
Original commit message from CVS:
* gst/gstinfo.c (gst_debug_log_valist):
Improved the __FILE__ part of debug output for MSVC.
Ole André Vadla Ravnås [Wed, 7 May 2008 19:15:14 +0000 (19:15 +0000)]
libs/gst/base/gstbasesrc.c (gst_base_src_default_query): Declaration after statement fix for compilers like MSVC.
Original commit message from CVS:
* libs/gst/base/gstbasesrc.c (gst_base_src_default_query):
Declaration after statement fix for compilers like MSVC.
Ole André Vadla Ravnås [Wed, 7 May 2008 19:09:08 +0000 (19:09 +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.
Ole André Vadla Ravnås [Wed, 7 May 2008 18:51:22 +0000 (18:51 +0000)]
gst/gstinfo.h (GST_FUNCTION): Made GST_FUNCTION an alias for G_STRFUNC to avoid duplication.
Original commit message from CVS:
* gst/gstinfo.h (GST_FUNCTION):
Made GST_FUNCTION an alias for G_STRFUNC to avoid duplication.
Wim Taymans [Wed, 7 May 2008 09:47:27 +0000 (09:47 +0000)]
libs/gst/base/gstadapter.c: Small code cleanup.
Original commit message from CVS:
* libs/gst/base/gstadapter.c: (gst_adapter_available_fast):
Small code cleanup.
* libs/gst/base/gstbasesink.c: (gst_base_sink_query_latency),
(gst_base_sink_set_flushing):
* libs/gst/base/gstbasesrc.c: (gst_base_src_perform_seek):
Fix some comments.
Wim Taymans [Wed, 7 May 2008 09:34:58 +0000 (09:34 +0000)]
plugins/elements/gstfakesrc.*: Added format property to control the format of the newsegment events.
Original commit message from CVS:
* plugins/elements/gstfakesrc.c: (gst_fake_src_class_init),
(gst_fake_src_init), (gst_fake_src_set_property),
(gst_fake_src_get_property), (gst_fake_src_start):
* plugins/elements/gstfakesrc.h:
Added format property to control the format of the newsegment events.
API: GstFakeSrc:format
Sebastian Dröge [Tue, 6 May 2008 08:45:07 +0000 (08:45 +0000)]
win32/common/libgstreamer.def: Add gst_pad_has_name() to the exported symbols.
Original commit message from CVS:
* win32/common/libgstreamer.def:
Add gst_pad_has_name() to the exported symbols.
Sebastian Dröge [Tue, 6 May 2008 08:43:57 +0000 (08:43 +0000)]
Don't allow negative sizes when allocating new buffers.
Original commit message from CVS:
* gst/gstpad.c: (gst_pad_alloc_buffer_full):
* libs/gst/base/gstbasetransform.c:
(gst_base_transform_prepare_output_buffer):
Don't allow negative sizes when allocating new buffers.
Fixes bug #461253.
Sjoerd Simons [Mon, 5 May 2008 16:47:29 +0000 (16:47 +0000)]
gst/gstbus.c: Don't print a warning if the queue is empty when we try to pop here. That could happen if another threa...
Original commit message from CVS:
Patch by: Sjoerd Simons <sjoerd at luon net>
* gst/gstbus.c: (gst_bus_source_dispatch):
Don't print a warning if the queue is empty when we try to pop
here. That could happen if another thread or callback set the
bus to flushing between the source's check/prepare and the
dispatch being called (#531538).
Tim-Philipp Müller [Mon, 5 May 2008 16:25:23 +0000 (16:25 +0000)]
plugins/elements/gstmultiqueue.c: Small docs fix.
Original commit message from CVS:
* plugins/elements/gstmultiqueue.c:
Small docs fix.
Sebastian Dröge [Mon, 5 May 2008 15:50:36 +0000 (15:50 +0000)]
tests/check/gst/gstvalue.c: Add unit test for deserializing uint64s and check some really large numbers in the int64 ...
Original commit message from CVS:
* tests/check/gst/gstvalue.c: (GST_START_TEST), (gst_value_suite):
Add unit test for deserializing uint64s and check some really large
numbers in the int64 test.
Sebastian Dröge [Sun, 4 May 2008 19:07:21 +0000 (19:07 +0000)]
tools/gst-inspect.c: Use "%s" as format string instead of printing strings directly.
Original commit message from CVS:
* tools/gst-inspect.c: (n_print), (print_hierarchy),
(print_interfaces), (print_element_properties_info),
(print_signal_info):
Use "%s" as format string instead of printing strings directly.
Sebastian Dröge [Sun, 4 May 2008 14:25:07 +0000 (14:25 +0000)]
gst/gstclock.c: Make some checks actually useful.
Original commit message from CVS:
* gst/gstclock.c: (gst_clock_set_calibration):
Make some checks actually useful.
* gst/gstregistrybinary.c: (gst_registry_binary_load_plugin):
Remove some unused code. Unsigned integers tend to be >= 0.
Tim-Philipp Müller [Sat, 3 May 2008 19:23:43 +0000 (19:23 +0000)]
gst/gstminiobject.c: Fix 'Since:' version in gst_value_dup_mini_object() docs blurb: this function was not in the uns...
Original commit message from CVS:
* gst/gstminiobject.c: (gst_value_get_mini_object):
Fix 'Since:' version in gst_value_dup_mini_object() docs blurb: this
function was not in the unscheduled 0.10.19 release.
Tim-Philipp Müller [Sat, 3 May 2008 19:13:47 +0000 (19:13 +0000)]
gst/gstregistry.c: Only print one log message per non-plugin file.
Original commit message from CVS:
* gst/gstregistry.c: (gst_registry_scan_path_level):
Only print one log message per non-plugin file.
Tim-Philipp Müller [Sat, 3 May 2008 19:08:50 +0000 (19:08 +0000)]
gst/gstinfo.c: Fix alignment of debug log columns on 64-bit.
Original commit message from CVS:
* gst/gstinfo.c: (gst_debug_log_default):
Fix alignment of debug log columns on 64-bit.
Tim-Philipp Müller [Sat, 3 May 2008 16:52:16 +0000 (16:52 +0000)]
docs/libs/: Ignore private controller headers for docs.
Original commit message from CVS:
* docs/libs/Makefile.am:
* docs/libs/gstreamer-libs-sections.txt:
Ignore private controller headers for docs.
Sebastian Dröge [Sat, 3 May 2008 15:25:25 +0000 (15:25 +0000)]
libs/gst/controller/: Move some private declarations into private headers.
Original commit message from CVS:
* libs/gst/controller/gstcontrollerprivate.h:
* libs/gst/controller/gsthelper.c:
* libs/gst/controller/gstinterpolation.c:
* libs/gst/controller/gstinterpolationcontrolsource.c:
(gst_interpolation_control_source_set_interpolation_mode):
* libs/gst/controller/gstinterpolationcontrolsourceprivate.h:
* libs/gst/controller/lib.c:
Move some private declarations into private headers.
Sebastian Dröge [Fri, 2 May 2008 10:12:33 +0000 (10:12 +0000)]
gst/gstdebugutils.c: Remove some code that is unused after Stefan's refactoring and uses uninitialized variables now,...
Original commit message from CVS:
* gst/gstdebugutils.c: (debug_dump_element_pad):
Remove some code that is unused after Stefan's refactoring and uses
uninitialized variables now, resulting in a compiler warning.
Tim-Philipp Müller [Thu, 1 May 2008 13:03:51 +0000 (13:03 +0000)]
gst/gstregistry.c: Run g_str_has_suffix() only on the file name, not the entire file path.
Original commit message from CVS:
* gst/gstregistry.c: (gst_registry_scan_path_level):
Run g_str_has_suffix() only on the file name, not the
entire file path.
Tim-Philipp Müller [Wed, 30 Apr 2008 14:20:48 +0000 (14:20 +0000)]
plugins/elements/gstqueue.c: Since we're not called only from the chain function any longer, we can't assume that the...
Original commit message from CVS:
* plugins/elements/gstqueue.c: (gst_queue_leak_downstream):
Since we're not called only from the chain function any longer,
we can't assume that there's always data in the queue, so move
the is_full check to the beginning of the loop (otherwise we'd
hit the assert when changing the limit properties while the
queue is empty or not running yet).
Also, only set a discont if items were actually removed from
the queue.
* tests/check/elements/queue.c: (test_leaky_downstream):
Test case for the above.
Jonas Holmberg [Wed, 30 Apr 2008 09:35:43 +0000 (09:35 +0000)]
plugins/elements/gstqueue.c: When changing thr max capacity of a leaky queue, immediatly drop buffers instead of wait...
Original commit message from CVS:
Patch by: Jonas Holmberg <jonas dot holmberg at axis dot com>
* plugins/elements/gstqueue.c: (gst_queue_leak_downstream),
(gst_queue_chain), (queue_capacity_change),
(gst_queue_set_property):
When changing thr max capacity of a leaky queue, immediatly drop buffers
instead of waiting for a push on the sinkpad. Fixes #530637.
Stefan Kost [Wed, 30 Apr 2008 07:56:39 +0000 (07:56 +0000)]
gst/gstdebugutils.c: Refactor code and fix handling of ghostpads and their proxypads.
Original commit message from CVS:
* gst/gstdebugutils.c:
Refactor code and fix handling of ghostpads and their proxypads.
Wim Taymans [Tue, 29 Apr 2008 11:23:51 +0000 (11:23 +0000)]
Add method to conveniently check the name of a custom event with gst_event_has_name().
Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
* gst/gstevent.c: (gst_event_has_name):
* gst/gstevent.h:
* tests/check/gst/gstevent.c: (GST_START_TEST):
Add method to conveniently check the name of a custom event with
gst_event_has_name().
Reformat the event docs so that related methods are put together instead
of the default alphabetical sort.
Update unit test with new method.
API: GstEvent::gst_event_has_name()
Michael Smith [Mon, 28 Apr 2008 18:44:48 +0000 (18:44 +0000)]
libs/gst/check/Makefile.am: Don't add an explicit link to libgstreamer-0.10.la; it's already included in GST_OBJ_LIBS.
Original commit message from CVS:
* libs/gst/check/Makefile.am:
Don't add an explicit link to libgstreamer-0.10.la; it's already
included in GST_OBJ_LIBS.
Sebastian Dröge [Mon, 28 Apr 2008 09:21:33 +0000 (09:21 +0000)]
gst/gst.c: Register GstClock type from a type-safe context. Fixes bug #530317.
Original commit message from CVS:
* gst/gst.c:
Register GstClock type from a type-safe context. Fixes bug #530317.
Edward Hervey [Sat, 26 Apr 2008 00:13:03 +0000 (00:13 +0000)]
tools/gst-run.c: Include <unistd.h> conditionally on HAVE_UNISTD_H as elsewhere.
Original commit message from CVS:
Patch by Edward Hervey <edward.hervey@collabora.co.uk>
* tools/gst-run.c:
Include <unistd.h> conditionally on HAVE_UNISTD_H as elsewhere.
Antoine Tremblay [Fri, 25 Apr 2008 17:54:28 +0000 (17:54 +0000)]
gst/gstbin.c: Use the GLib stuff to create a private structure.
Original commit message from CVS:
* gst/gstbin.c: (gst_bin_class_init), (gst_bin_init),
(gst_bin_dispose):
Use the GLib stuff to create a private structure.
Add some locking around some dispose methods to make them a little
safer, see #529723. Patch by: Antoine Tremblay <hexa00 at gmail dot com>
Stefan Kost [Fri, 25 Apr 2008 13:22:32 +0000 (13:22 +0000)]
libs/gst/base/: Fix doc typos and unify caps a bit.
Original commit message from CVS:
* libs/gst/base/gstbasesink.h:
* libs/gst/base/gstbasesrc.h:
* libs/gst/base/gstbasetransform.h:
* libs/gst/base/gstcollectpads.h:
Fix doc typos and unify caps a bit.
Stefan Kost [Fri, 25 Apr 2008 13:09:40 +0000 (13:09 +0000)]
tools/gst-launch.1.in: Forgot to also add the envvar docs here.
Original commit message from CVS:
* tools/gst-launch.1.in:
Forgot to also add the envvar docs here.
Tim-Philipp Müller [Fri, 25 Apr 2008 10:01:46 +0000 (10:01 +0000)]
Ref some more classes in gst_init() to work around thread-safety issues in pre-2.16 GLibs, and add basic unit test.
Original commit message from CVS:
* gst/gst.c: (init_post), (gst_deinit):
* tests/check/gst/gstpipeline.c: (GST_START_TEST), (pipeline_thread),
(test_concurrent_create), (gst_pipeline_suite):
Ref some more classes in gst_init() to work around thread-safety
issues in pre-2.16 GLibs, and add basic unit test.
Wim Taymans [Fri, 25 Apr 2008 07:22:16 +0000 (07:22 +0000)]
libs/gst/base/gstbasesink.c: Rearrange the latency query code. We always want to do the upstream query, even if we ar...
Original commit message from CVS:
* libs/gst/base/gstbasesink.c: (gst_base_sink_query_latency),
(gst_base_sink_send_event):
Rearrange the latency query code. We always want to do the upstream
query, even if we are not live so that the upstream elements can get the
latency results too. If we fail doing the query and we are live, we
return TRUE afterwards.
Jason Zhao [Thu, 24 Apr 2008 15:14:54 +0000 (15:14 +0000)]
Enable/disable scan_and_update_registry() based on commandline switch or environment variable. Fixes #520468.
Original commit message from CVS:
patch by: Jason Zhao <e3423c@motorola.com>
* docs/gst/running.xml:
* gst/gst.c:
Enable/disable scan_and_update_registry() based on commandline switch
or environment variable. Fixes #520468.
* ChangeLog:
Fix typo in my previous commit.
Stefan Kost [Thu, 24 Apr 2008 08:27:59 +0000 (08:27 +0000)]
gst/gstregistrybinary.c: Add a warning of we hit unhandled factories when saving.
Original commit message from CVS:
* gst/gstregistrybinary.c:
Add a warning of we hit unhandled factories when saving.
More debug logging detail, but move to LOG category.
Stefan Kost [Thu, 24 Apr 2008 06:46:54 +0000 (06:46 +0000)]
gst/gstregistry.c: Tell the *truth* when improving the documentation.
Original commit message from CVS:
* gst/gstregistry.c:
Tell the *truth* when improving the documentation.
Sebastian Dröge [Wed, 23 Apr 2008 14:54:20 +0000 (14:54 +0000)]
gst/gstelementfactory.c: Unref the factory after it was used the last time, not before.
Original commit message from CVS:
* gst/gstelementfactory.c: (gst_element_factory_make):
Unref the factory after it was used the last time, not before.
* gst/gstindexfactory.c: (gst_index_factory_make):
Improve debugging a bit and don't leak a ref to the index factory with
each call.
Stefan Kost [Wed, 23 Apr 2008 13:55:01 +0000 (13:55 +0000)]
gst/gstregistry.c: Improve the documentation.
Original commit message from CVS:
* gst/gstregistry.c:
Improve the documentation.
Stefan Kost [Wed, 23 Apr 2008 10:14:38 +0000 (10:14 +0000)]
gst/gstsegment.c: The glib macro seems to be borked. Use g_slice_copy directly and cast in the hope that this fixes t...
Original commit message from CVS:
* gst/gstsegment.c:
The glib macro seems to be borked. Use g_slice_copy directly and cast
in the hope that this fixes the warning on 64bit.
Stefan Kost [Wed, 23 Apr 2008 07:08:53 +0000 (07:08 +0000)]
gst/gstsegment.c: Document the new function. Use g_slice_dup() (no need for gst_segment_init()).
Original commit message from CVS:
* gst/gstsegment.c:
Document the new function. Use g_slice_dup() (no need for
gst_segment_init()).
Stefan Kost [Wed, 23 Apr 2008 06:57:30 +0000 (06:57 +0000)]
docs/gst/gstreamer-sections.txt: Move GParamSepc macros to standart section.
Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
Move GParamSepc macros to standart section.
* gst/gstbin.c:
Dn't document _get_type - its in private section in docs anyway and
this doc-blob was incomplete.
* gst/gstclock.h:
Fix wrong symbol names in docs.
* gst/gstmacros.h:
Add once doc sentence.
* tests/check/gst/.cvsignore:
Ignore more.
Stefan Kost [Mon, 21 Apr 2008 10:25:02 +0000 (10:25 +0000)]
docs/gst/Makefile.am: And remove those libs here.
Original commit message from CVS:
* docs/gst/Makefile.am:
And remove those libs here.
Tim-Philipp Müller [Mon, 21 Apr 2008 09:29:37 +0000 (09:29 +0000)]
docs/libs/Makefile.am: Fix docs build again by adding libgstnet-0.10.so to SCANOBJ_DEPS.
Original commit message from CVS:
* docs/libs/Makefile.am:
Fix docs build again by adding libgstnet-0.10.so to SCANOBJ_DEPS.
Olivier Crete [Mon, 21 Apr 2008 08:34:09 +0000 (08:34 +0000)]
plugins/elements/gstqueue.c: Add the min-threshold to the min latency if possible. Fixes #529148.
Original commit message from CVS:
Patch by: Olivier Crete <tester at tester dot ca>
* plugins/elements/gstqueue.c: (gst_queue_handle_src_query):
Add the min-threshold to the min latency if possible. Fixes #529148.
Stefan Kost [Mon, 21 Apr 2008 07:45:48 +0000 (07:45 +0000)]
docs/gst/gstreamer.types.in: Stupid editor, I removed that line as it should go in yet.
Original commit message from CVS:
* docs/gst/gstreamer.types.in:
Stupid editor, I removed that line as it should go in yet.
Stefan Kost [Mon, 21 Apr 2008 07:42:14 +0000 (07:42 +0000)]
docs/: Remove library types fro core docs and have them in libs docs.
Original commit message from CVS:
* docs/gst/gstreamer.types.in:
* docs/libs/gstreamer-libs.types:
Remove library types fro core docs and have them in libs docs.
Reformat and cleanup. Add comment for miniobject types.
Tim-Philipp Müller [Sun, 20 Apr 2008 16:32:03 +0000 (16:32 +0000)]
gst/gsturi.c: Fix leak: g_strdown operates on the string in place, while g_ascii_strdown() returns a newly-allocated ...
Original commit message from CVS:
* gst/gsturi.c: (gst_uri_get_protocol):
Fix leak: g_strdown operates on the string in place, while
g_ascii_strdown() returns a newly-allocated string.
Sebastian Dröge [Sun, 20 Apr 2008 09:55:25 +0000 (09:55 +0000)]
tools/gst-inspect.c: Print the URI protocols and the URI type supported by the element.
Original commit message from CVS:
* tools/gst-inspect.c: (print_uri_handler_info),
(print_element_info):
Print the URI protocols and the URI type supported by the element.
Sebastian Dröge [Sat, 19 Apr 2008 16:05:58 +0000 (16:05 +0000)]
gst/gsttaglist.c: Use g_value_take_string() instead of the deprecated g_value_set_string_take_ownership().
Original commit message from CVS:
* gst/gsttaglist.c: (gst_tag_merge_strings_with_comma):
Use g_value_take_string() instead of the deprecated
g_value_set_string_take_ownership().
Sebastian Dröge [Sat, 19 Apr 2008 15:42:19 +0000 (15:42 +0000)]
gst/gstregistrybinary.c: Return the old CRC instead of 0 if we give a NULL buffer or a buffer with a length of 0.
Original commit message from CVS:
* gst/gstregistrybinary.c: (_gst_crc32):
Return the old CRC instead of 0 if we give a NULL buffer
or a buffer with a length of 0.
Sebastian Dröge [Sat, 19 Apr 2008 15:36:20 +0000 (15:36 +0000)]
gst/gsturi.c: A valid URI scheme can also include '+', '-' and '.' additional to alphanumeric characters as per RFC 3...
Original commit message from CVS:
* gst/gsturi.c: (gst_uri_protocol_check_internal),
(gst_uri_get_protocol), (gst_uri_has_protocol),
(gst_uri_construct), (gst_uri_handler_set_uri):
A valid URI scheme can also include '+', '-' and '.' additional
to alphanumeric characters as per RFC 3986 Section 3.1.
Handle URI schemes case insensitive in all places and convert
to lower-case when constructing an URI or setting an URI with
the GstURIHandler interface. Fixes bug #528868.
All elements can still assume (as before) that they will
get passed URIs with a lower-case URI scheme by the GstURIHandler
interface.
Tim-Philipp Müller [Thu, 17 Apr 2008 10:09:39 +0000 (10:09 +0000)]
gst/: Don't use g_atomic_set_int where it's not needed.
Original commit message from CVS:
* gst/gstcaps.c: (gst_static_caps_get):
* gst/gstclock.c: (gst_clock_entry_new):
Don't use g_atomic_set_int where it's not needed.
Wim Taymans [Thu, 17 Apr 2008 08:45:19 +0000 (08:45 +0000)]
gst/: Fix 2 caps leaks.
Original commit message from CVS:
* gst/gstvalue.c: (gst_value_deserialize_caps):
* gst/parse/grammar.y:
Fix 2 caps leaks.
Sebastian Dröge [Thu, 17 Apr 2008 08:34:14 +0000 (08:34 +0000)]
gst/gstutils.c: Use g_atomic_int_set() here too instead of assignment + g_atomic_int_get().
Original commit message from CVS:
* gst/gstutils.c: (gst_atomic_int_set):
Use g_atomic_int_set() here too instead of assignment +
g_atomic_int_get().
Sebastian Dröge [Thu, 17 Apr 2008 07:14:46 +0000 (07:14 +0000)]
gst/gstutils.*: API: Deprecate gst_atomic_int_set(), g_atomic_int_set() should be used now that we depend on new enou...
Original commit message from CVS:
* gst/gstutils.c:
* gst/gstutils.h:
API: Deprecate gst_atomic_int_set(), g_atomic_int_set() should be used
now that we depend on new enough GLib.
* gst/gstcaps.c: (gst_static_caps_get):
* gst/gstclock.c: (gst_clock_entry_new):
* gst/gstinfo.c: (_gst_debug_init), (gst_debug_set_colored),
(gst_debug_set_default_threshold), (_gst_debug_category_new),
(gst_debug_category_set_threshold):
* libs/gst/base/gstbasesink.c: (gst_base_sink_init),
(gst_base_sink_set_qos_enabled):
* libs/gst/net/gstnettimeprovider.c:
(gst_net_time_provider_set_property):
Use g_atomic_int_set() instead of gst_atomic_int_set().
Stefan Kost [Wed, 16 Apr 2008 18:48:03 +0000 (18:48 +0000)]
gst/gstquery.c: Also use G_GINT64_CONSTANT for the queries.
Original commit message from CVS:
* gst/gstquery.c:
Also use G_GINT64_CONSTANT for the queries.
Stefan Kost [Wed, 16 Apr 2008 18:38:16 +0000 (18:38 +0000)]
gst/gstmessage.c: Use G_GINT64_CONSTANT in varargs function.
Original commit message from CVS:
* gst/gstmessage.c:
Use G_GINT64_CONSTANT in varargs function.
Sebastian Dröge [Wed, 16 Apr 2008 15:51:17 +0000 (15:51 +0000)]
gst/gstregistrybinary.c: Initialize the registry magic with zeroes.
Original commit message from CVS:
* gst/gstregistrybinary.c: (gst_registry_binary_initialize_magic):
Initialize the registry magic with zeroes.
Sebastian Dröge [Wed, 16 Apr 2008 14:18:58 +0000 (14:18 +0000)]
gst/gstregistrybinary.*: Add crc32 checksum to the binary registry file and check this before accepting a registry file.
Original commit message from CVS:
* gst/gstregistrybinary.c: (_gst_crc32),
(gst_registry_binary_write),
(gst_registry_binary_initialize_magic),
(gst_registry_binary_write_cache),
(gst_registry_binary_check_magic),
(gst_registry_binary_read_cache):
* gst/gstregistrybinary.h:
Add crc32 checksum to the binary registry file and check this before
accepting a registry file.
Also free the data list when writing to the registry file fails.
Sebastian Dröge [Wed, 16 Apr 2008 13:16:44 +0000 (13:16 +0000)]
gst/gstregistrybinary.c: If an element supports the Uri interface, returns a valid pointer to the supported URI proto...
Original commit message from CVS:
* gst/gstregistrybinary.c: (gst_registry_binary_save_feature),
(gst_registry_binary_load_feature),
(gst_registry_binary_load_plugin):
If an element supports the Uri interface, returns a valid pointer
to the supported URI protocols but this pointer contains nothing
don't try to save that as it will corrupt the registry.
Don't unref the plugin if we added it to the registry already but
fail to load a feature as gst_registry_add_plugin() takes ownership
of the plugin.
Improve debugging a bit.
Stefan Kost [Wed, 16 Apr 2008 08:30:57 +0000 (08:30 +0000)]
gst/gsttaglist.h: Clarify some tag item docs after discussion on irc.
Original commit message from CVS:
* gst/gsttaglist.h:
Clarify some tag item docs after discussion on irc.
Stefan Kost [Tue, 15 Apr 2008 06:23:14 +0000 (06:23 +0000)]
docs/gst/gstreamer-docs.sgml: Remove commented out plugins (they have their own docs). Update comments.
Original commit message from CVS:
* docs/gst/gstreamer-docs.sgml:
Remove commented out plugins (they have their own docs). Update
comments.
Stefan Kost [Tue, 15 Apr 2008 06:16:33 +0000 (06:16 +0000)]
Add GST_PARAM_CONTROLLABLE and GST_PARAM_USER_SHIFT. Move paramspec docs to own section.
Original commit message from CVS:
* docs/gst/gstreamer-docs.sgml:
* docs/gst/gstreamer-sections.txt:
* gst/gstparamspecs.c:
* gst/gstparamspecs.h:
Add GST_PARAM_CONTROLLABLE and GST_PARAM_USER_SHIFT. Move paramspec
docs to own section.
* gst/gstvalue.c:
This now only documents GValue.
* docs/libs/gstreamer-libs-sections.txt:
* libs/gst/controller/gstcontroller.h:
Remove GST_PARAM_CONTROLLABLE.
Stefan Kost [Tue, 15 Apr 2008 05:54:13 +0000 (05:54 +0000)]
docs/README: Correct file path. Tell about how to use -overrides.txt.
Original commit message from CVS:
* docs/README:
Correct file path. Tell about how to use -overrides.txt.
* docs/design/draft-tagreading.txt:
Small design update.
Sebastian Dröge [Mon, 14 Apr 2008 12:12:22 +0000 (12:12 +0000)]
gst/gstregistrybinary.c: Fix a typo in a debug message and revert change from yesterday as gst_registry_add_plugin() ...
Original commit message from CVS:
* gst/gstregistrybinary.c: (gst_registry_binary_load_feature),
(gst_registry_binary_load_plugin):
Fix a typo in a debug message and revert change from yesterday as
gst_registry_add_plugin() will only fail if something is really wrong
already and we can't survive it anyway.
Tim-Philipp Müller [Mon, 14 Apr 2008 08:48:50 +0000 (08:48 +0000)]
gst/gst.c: Pre-register GstGError GType from a thread-safe context (fixes #527967); unref enum type classes in deinit.
Original commit message from CVS:
* gst/gst.c: (init_post), (gst_deinit):
Pre-register GstGError GType from a thread-safe context
(fixes #527967); unref enum type classes in deinit.
Rene Stadler [Sun, 13 Apr 2008 19:58:43 +0000 (19:58 +0000)]
gst/gsttagsetter.c: Merging an empty list with another list in KEEP_ALL mode should yield an empty list as result and...
Original commit message from CVS:
Patch by: Rene Stadler <mail at renestadler de>
* gst/gsttagsetter.c: (gst_tag_setter_merge_tags):
Merging an empty list with another list in KEEP_ALL mode should
yield an empty list as result and not the second list (#512578).
* tests/check/gst/gsttagsetter.c:
Add unit test for tag merge modes and the aforementioned bug.
Rene Stadler [Sun, 13 Apr 2008 18:50:05 +0000 (18:50 +0000)]
gst/gsttaglist.h: Fix description to match the order in the table (#512577).
Original commit message from CVS:
Patch by: Rene Stadler <mail at renestadler de>
* gst/gsttaglist.h:
Fix description to match the order in the table (#512577).
Kwang Yul Seo [Sun, 13 Apr 2008 17:51:02 +0000 (17:51 +0000)]
Define socklen_t as int if it's not defined yet. Fixes compilation with MSVC6 and other versions where socklen_t is n...
Original commit message from CVS:
Patch by: Kwang Yul Seo <kwangyul.seo gmail com>
* libs/gst/net/gstnettimepacket.h:
* docs/libs/gstreamer-libs-sections.txt:
Define socklen_t as int if it's not defined yet. Fixes compilation
with MSVC6 and other versions where socklen_t is not defined in
the windows headers (#518022).
Sebastian Dröge [Sun, 13 Apr 2008 13:54:55 +0000 (13:54 +0000)]
gst/gstregistrybinary.c: If gst_registry_add_plugin() fails our reference to the plugin is invalid so don't try to us...
Original commit message from CVS:
* gst/gstregistrybinary.c: (gst_registry_binary_load_plugin):
If gst_registry_add_plugin() fails our reference to the plugin is
invalid so don't try to use it anymore and instead error out.
Tim-Philipp Müller [Sat, 12 Apr 2008 20:52:58 +0000 (20:52 +0000)]
tools/gst-xmlinspect.c: De-cruft a bit. If no argument is specified, print all elements in
Original commit message from CVS:
* tools/gst-xmlinspect.c: (print_element_info), (main):
De-cruft a bit. If no argument is specified, print all elements in
XML syntax rather than a freestyle list of elements like gst-inspect.
Also, don't print XML header chunk unless we actually have something
to print (ie. don't print it before an error message); print error
message to stderr not stdout. Remove support for printing plugin
info (it would just output something freestyle along the lines of
gst-inspect so far), which fixes #514507. Also add license header.