platform/upstream/gstreamer.git
18 years agocheck/net/gstnetclientclock.c (test_functioning): Adjust to rate_num/rate_denom change.
Andy Wingo [Wed, 23 Nov 2005 12:36:00 +0000 (12:36 +0000)]
check/net/gstnetclientclock.c (test_functioning): Adjust to rate_num/rate_denom change.

Original commit message from CVS:
2005-11-23  Andy Wingo  <wingo@pobox.com>

* check/net/gstnetclientclock.c (test_functioning): Adjust to
rate_num/rate_denom change.

* gst/net/gstnetclientclock.c
(gst_net_client_clock_observe_times): Take the SLAVE_LOCK not the
OBJECT_LOCK. Don't call add_observation with the lock.

* gst/gstclock.c (gst_clock_init): Initialize the rate as a
fraction.
(gst_clock_adjust_unlocked): Adjust using uint64_scale and the
rate fraction.
(gst_clock_set_calibration, gst_clock_get_calibration): Change to
deal with rate as a fraction whose numerator and denominator are
GstClockTime values.
(gst_clock_set_master): Only use the OBJECT_LOCK to set the
master; the other fields are protected by the SLAVE_LOCK.
(do_linear_regression): Note that this must be called with the
SLAVE_LOCK.
(gst_clock_add_observation): Take the SLAVE_LOCK, not the
OBJECT_LOCK. Call set_calibration instead of touching the
variables directly.
(gst_clock_set_property, gst_clock_get_property): Protect
master/slave parameters with the SLAVE_LOCK.

* gst/gstclock.h (GstClock): Remove rate, add rate_numerator and
rate_denominator. PR3C1S3. Add a new lock, the SLAVE_LOCK, and
note that all of the instance variables that add_observation and
the set_master functions use are protected by that lock and not
the OBJECT_LOCK.
(GST_CLOCK_SLAVE_LOCK, GST_CLOCK_SLAVE_UNLOCK): New macros.

* gst/gstclock.c (gst_clock_add_observation): No longer requires
the caller to take the object lock.

18 years agogst/gsterror.*: Add error for clock stuff.
Wim Taymans [Wed, 23 Nov 2005 11:22:39 +0000 (11:22 +0000)]
gst/gsterror.*: Add error for clock stuff.

Original commit message from CVS:
* gst/gsterror.c: (_gst_core_errors_init):
* gst/gsterror.h:
Add error for clock stuff.

* gst/gstpipeline.c: (gst_pipeline_change_state),
(gst_pipeline_set_clock):
Post clock error when clock cannot be used in a pipeline.

18 years agodocs/gst/gstreamer-sections.txt: make two symbols from gstinfo private for the docs
Stefan Kost [Wed, 23 Nov 2005 11:05:37 +0000 (11:05 +0000)]
docs/gst/gstreamer-sections.txt: make two symbols from gstinfo private for the docs

Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
make two symbols from gstinfo private for the docs
* gst/base/gstcollectpads.h:
* gst/gstutils.c:
fix doc typos, update docs

18 years agogst/base/gstbasesink.*: No need to store the clock, the parent element class already...
Wim Taymans [Tue, 22 Nov 2005 18:28:44 +0000 (18:28 +0000)]
gst/base/gstbasesink.*: No need to store the clock, the parent element class already has it.

Original commit message from CVS:
* gst/base/gstbasesink.c: (gst_base_sink_class_init),
(gst_base_sink_wait), (gst_base_sink_do_sync),
(gst_base_sink_handle_event):
* gst/base/gstbasesink.h:
No need to store the clock, the parent element class already
has it.

* gst/gstbin.c: (gst_bin_set_clock_func), (gst_bin_add_func):
Updates for clock_set returning a gboolean

* gst/gstclock.c: (gst_clock_entry_new), (gst_clock_id_wait),
(gst_clock_id_wait_async), (gst_clock_class_init),
(gst_clock_init), (gst_clock_finalize),
(gst_clock_get_internal_time), (gst_clock_get_time),
(gst_clock_slave_callback), (gst_clock_set_master),
(gst_clock_get_master), (do_linear_regression),
(gst_clock_add_observation), (gst_clock_set_property),
(gst_clock_get_property):
* gst/gstclock.h:
Implement master/slave. When setting a clock as a slave, a
periodic timeout is scheduled to sample master and slave times.
Then the slave clock is recalibrated to match offset and rate
of the master clock.
Update logging a bit.
Add flag so that a clock can state that is cannot be slaved to
another clock.

* gst/gstelement.c: (gst_element_set_clock):
* gst/gstelement.h:
The set_clock returns a gboolean for when an element cannot
deal with the selected clock in the pipeline.

* gst/gstpipeline.c: (gst_pipeline_change_state),
(gst_pipeline_set_clock):
* gst/gstpipeline.h:
Handle the case where the selected clock cannot be set on
the pipeline.

* gst/net/gstnetclientclock.c: (gst_net_client_clock_class_init),
(gst_net_client_clock_init), (gst_net_client_clock_finalize),
(gst_net_client_clock_set_property),
(gst_net_client_clock_get_property),
(gst_net_client_clock_observe_times):
* gst/net/gstnetclientclock.h:
Use regression code in GstClock parent, remove duplicated
functionality.

18 years agoAdd underscores
Michael Smith [Tue, 22 Nov 2005 16:31:08 +0000 (16:31 +0000)]
Add underscores

Original commit message from CVS:
Add underscores

18 years agogst/: correctly fix GEnumValues so that nick is the short lowercase dashed tag
Thomas Vander Stichele [Tue, 22 Nov 2005 15:52:03 +0000 (15:52 +0000)]
gst/: correctly fix GEnumValues so that nick is the short lowercase dashed tag

Original commit message from CVS:

* gst/elements/Makefile.am:
* gst/elements/gstfakesink.c: (gst_fake_sink_state_error_get_type):
* gst/elements/gstfakesrc.c: (gst_fake_src_data_get_type),
(gst_fake_src_sizetype_get_type), (gst_fake_src_filltype_get_type),
(gst_fake_src_init), (gst_fake_src_prepare_buffer),
(gst_fake_src_alloc_buffer), (gst_fake_src_get_size):
* gst/elements/gstfakesrc.h:
* gst/gstqueue.c: (queue_leaky_get_type):
correctly fix GEnumValues so that nick is the short lowercase
dashed tag
* tools/gst-inspect.c: (print_element_properties_info):
also show the nick, since it's useful to use from parse_launch
syntax
Fixes #322139

18 years agoAdd util method for scaling a clocktime by a fraction. Useful implementation is left...
Michael Smith [Tue, 22 Nov 2005 15:15:53 +0000 (15:15 +0000)]
Add util method for scaling a clocktime by a fraction. Useful implementation is left as an exercise for the reader.

Original commit message from CVS:
* gst/gstutils.c: (gst_util_clocktime_scale):
* gst/gstutils.h:
* docs/gst/gstreamer-sections.txt:
Add util method for scaling a clocktime by a fraction. Useful
implementation is left as an exercise for the reader.

18 years agogst/gstvalue.c: If needed, allocate storage in the destination value during collection.
Jan Schmidt [Tue, 22 Nov 2005 14:29:10 +0000 (14:29 +0000)]
gst/gstvalue.c: If needed, allocate storage in the destination value during collection.

Original commit message from CVS:

* gst/gstvalue.c: (gst_value_collect_fraction_range):
If needed, allocate storage in the destination value during
collection.

18 years agoRemoved GstURI , closes bug #321061
Edward Hervey [Tue, 22 Nov 2005 13:58:00 +0000 (13:58 +0000)]
Removed GstURI , closes bug #321061

Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
* gst/Makefile.am:
* gst/gst.h:
* gst/gsturitype.c:
* gst/gsturitype.h:
* gst/gstutils.c: (gst_util_set_object_arg):
* tools/gst-compprep.c: (main):
* tools/gst-inspect.c: (print_element_properties_info):
Removed GstURI , closes bug #321061

18 years agoOops, broke automatic string type parsing.
Jan Schmidt [Tue, 22 Nov 2005 13:14:51 +0000 (13:14 +0000)]
Oops, broke automatic string type parsing.

Original commit message from CVS:
* check/gst/gststructure.c: (GST_START_TEST):
* gst/gststructure.c: (gst_structure_parse_value):
Oops, broke automatic string type parsing.
Add a test to catch it in future.

18 years agogst/gsttagsetter.c (gst_tag_setter_get_tag_merge_mode)
Andy Wingo [Tue, 22 Nov 2005 13:02:12 +0000 (13:02 +0000)]
gst/gsttagsetter.c (gst_tag_setter_get_tag_merge_mode)

Original commit message from CVS:
2005-11-22  Andy Wingo  <wingo@pobox.com>

* gst/gsttagsetter.c (gst_tag_setter_get_tag_merge_mode)
(gst_tag_setter_set_tag_merge_mode, gst_tag_setter_get_tag_list):
Actually rename the function implementations. Grr.

18 years agofix borked commit
Andy Wingo [Tue, 22 Nov 2005 12:51:18 +0000 (12:51 +0000)]
fix borked commit

Original commit message from CVS:
fix borked commit

18 years agocheck/gst/capslist.h: Comment test cases
Jan Schmidt [Tue, 22 Nov 2005 12:35:42 +0000 (12:35 +0000)]
check/gst/capslist.h: Comment test cases

Original commit message from CVS:

* check/gst/capslist.h:
Comment test cases
* check/gst/gststructure.c: (GST_START_TEST),
(gst_structure_suite):
Test automatic value type detection in gst_structure_from_string.
* gst/gststructure.c: (gst_structure_parse_value):
Add fraction as a type we try and guess automatically in
caps/structure strings.

18 years agoupdate update-funcs for tagsetter
Andy Wingo [Tue, 22 Nov 2005 12:35:35 +0000 (12:35 +0000)]
update update-funcs for tagsetter

Original commit message from CVS:
update update-funcs for tagsetter

18 years agogst/gsttagsetter.*: (gst_tag_setter_merge_tags) (gst_tag_setter_add_tags, gst_tag_set...
Torsten Schoenfeld [Tue, 22 Nov 2005 12:20:04 +0000 (12:20 +0000)]
gst/gsttagsetter.*: (gst_tag_setter_merge_tags) (gst_tag_setter_add_tags, gst_tag_setter_add_tag_values) (gst_tag_set...

Original commit message from CVS:
2005-11-22  Andy Wingo  <wingo@pobox.com>

patch by: Torsten Schoenfeld <kaffeetisch gmx de>

* gst/gsttagsetter.h:
* gst/gsttagsetter.c: (gst_tag_setter_merge_tags)
(gst_tag_setter_add_tags, gst_tag_setter_add_tag_values)
(gst_tag_setter_add_tag_valist)
(gst_tag_setter_add_tag_valist_values): Renamed from _merge, _add,
_add_values, _add_valist, and _add_valist_values. Since this is an
interface the function suffixes should be more explicit so
language binding don't end up with element.add_valist ->
gst_tag_setter_add_valist, for example. Fixes #322069.

18 years agodon't valgrind the stress test, takes too long
Thomas Vander Stichele [Tue, 22 Nov 2005 12:15:19 +0000 (12:15 +0000)]
don't valgrind the stress test, takes too long

Original commit message from CVS:
don't valgrind the stress test, takes too long

18 years agocheck/gst/gstcaps.c: Extend caps string tests to check that a caps to string conversi...
Jan Schmidt [Tue, 22 Nov 2005 11:56:01 +0000 (11:56 +0000)]
check/gst/gstcaps.c: Extend caps string tests to check that a caps to string conversion is reversible and produces th...

Original commit message from CVS:
* check/gst/gstcaps.c: (GST_START_TEST):
Extend caps string tests to check that a caps to string
conversion is reversible and produces the same caps.

* gst/gststructure.c: (gst_structure_value_get_generic_type):
Output "fraction" as the generic type fraction range, so caps
serialisation and deserialisation works.
* check/gst/capslist.h:
* gst/gstvalue.c: (gst_value_deserialize_fraction):
Support 'MIN' and 'MAX' for deserialising fractions.

18 years agoMinor doc fix.
Michael Smith [Tue, 22 Nov 2005 11:50:12 +0000 (11:50 +0000)]
Minor doc fix.

Original commit message from CVS:
Minor doc fix.

18 years agogst/gstevent.h (gst_event_new_new_segment) (gst_event_parse_new_segment, gst_event_ne...
Andy Wingo [Tue, 22 Nov 2005 11:48:58 +0000 (11:48 +0000)]
gst/gstevent.h (gst_event_new_new_segment) (gst_event_parse_new_segment, gst_event_new_buffer_size)

Original commit message from CVS:
2005-11-22  Andy Wingo  <wingo@pobox.com>

* gst/gstevent.h (gst_event_new_new_segment)
(gst_event_parse_new_segment, gst_event_new_buffer_size)
(gst_event_parse_buffer_size, gst_ghost_pad_new_no_target):
Renamed from *_newsegment, *_buffersize, *_notarget.

* scripts/update-funcnames: New script, performs the changes
listed above.

18 years agogst/base/gstbasesink.c: Make sure the GstFlowReturn is returned.
Wim Taymans [Tue, 22 Nov 2005 11:25:01 +0000 (11:25 +0000)]
gst/base/gstbasesink.c: Make sure the GstFlowReturn is returned.

Original commit message from CVS:
* gst/base/gstbasesink.c: (gst_base_sink_handle_object):
Make sure the GstFlowReturn is returned.

* gst/gstbus.c: (gst_bus_add_signal_watch_full),
(gst_bus_add_signal_watch):
* gst/gstbus.h:
add gst_bus_add_signal_watch_full.

* gst/gstplugin.c: (gst_plugin_load_file):
Small style cleanup.

18 years agocheck/gst/gstevent.c: Block the fakesrc srcpad when we send an event, to avoid conten...
Jan Schmidt [Tue, 22 Nov 2005 10:24:31 +0000 (10:24 +0000)]
check/gst/gstevent.c: Block the fakesrc srcpad when we send an event, to avoid contention on the stream_lock causing ...

Original commit message from CVS:
* check/gst/gstevent.c: (test_event), (GST_START_TEST):
Block the fakesrc srcpad when we send an event, to avoid
contention on the stream_lock causing random test failures.

18 years agoFix subtraction.
Jan Schmidt [Tue, 22 Nov 2005 09:42:17 +0000 (09:42 +0000)]
Fix subtraction.

Original commit message from CVS:
* check/gst/gstvalue.c: (GST_START_TEST):
* gst/gstvalue.c: (gst_value_fraction_subtract):
Fix subtraction.

18 years agogst/gst.h: include "gstchildproxy.h"
Stefan Kost [Tue, 22 Nov 2005 09:35:25 +0000 (09:35 +0000)]
gst/gst.h: include "gstchildproxy.h"

Original commit message from CVS:
* gst/gst.h:
include "gstchildproxy.h"
* gst/gstchildproxy.h:
* libs/gst/controller/gstcontroller.h:
use G_GNUC_NULL_TERMINATED

18 years agoImplement fraction ranges and extend GstFraction to support arithmetic subtraction...
Jan Schmidt [Mon, 21 Nov 2005 23:54:59 +0000 (23:54 +0000)]
Implement fraction ranges and extend GstFraction to support arithmetic subtraction, as well as deserialization from i...

Original commit message from CVS:
* check/gst/capslist.h:
* check/gst/gstcaps.c: (GST_START_TEST):
* check/gst/gstvalue.c: (GST_START_TEST), (gst_value_suite):
* gst/gststructure.c: (gst_structure_parse_range),
(gst_structure_fixate_field_nearest_fraction):
* gst/gststructure.h:
* gst/gstvalue.c: (gst_value_init_fraction_range),
(gst_value_free_fraction_range), (gst_value_copy_fraction_range),
(gst_value_collect_fraction_range),
(gst_value_lcopy_fraction_range), (gst_value_set_fraction_range),
(gst_value_set_fraction_range_full),
(gst_value_get_fraction_range_min),
(gst_value_get_fraction_range_max),
(gst_value_serialize_fraction_range),
(gst_value_transform_fraction_range_string),
(gst_value_compare_fraction_range),
(gst_value_deserialize_fraction_range),
(gst_value_intersect_fraction_fraction_range),
(gst_value_intersect_fraction_range_fraction_range),
(gst_value_subtract_fraction_fraction_range),
(gst_value_subtract_fraction_range_fraction),
(gst_value_subtract_fraction_range_fraction_range),
(gst_value_collect_fraction), (gst_value_fraction_multiply),
(gst_value_fraction_subtract), (gst_value_deserialize_fraction),
(gst_value_transform_string_fraction), (_gst_value_initialize):
* gst/gstvalue.h:
Implement fraction ranges and extend GstFraction to support
arithmetic subtraction, as well as deserialization from integer
strings such as "100"
Add a testsuite as for int and double range set operations

18 years agogst/: Add glib-compat.h.
Andy Wingo [Mon, 21 Nov 2005 19:58:23 +0000 (19:58 +0000)]
gst/: Add glib-compat.h.

Original commit message from CVS:
2005-11-21  Andy Wingo  <wingo@pobox.com>

* gst/gsttaglist.h:
* gst/gstcaps.h:
* gst/gststructure.h: Add glib-compat.h.

18 years agogst/gstbin.c: Fix for #321595
Wim Taymans [Mon, 21 Nov 2005 19:13:13 +0000 (19:13 +0000)]
gst/gstbin.c: Fix for #321595

Original commit message from CVS:
* gst/gstbin.c: (gst_bin_change_state_func):
Fix for #321595

18 years agogst/gstsegment.h: And add a nice define too.
Wim Taymans [Mon, 21 Nov 2005 19:00:28 +0000 (19:00 +0000)]
gst/gstsegment.h: And add a nice define too.

Original commit message from CVS:
* gst/gstsegment.h:
And add a nice define too.

18 years agogst/gstsegment.*: Make binding friendly.
Wim Taymans [Mon, 21 Nov 2005 18:53:06 +0000 (18:53 +0000)]
gst/gstsegment.*: Make binding friendly.

Original commit message from CVS:
* gst/gstsegment.c: (gst_segment_copy), (gst_segment_get_type),
(gst_segment_new), (gst_segment_free), (gst_segment_init),
(gst_segment_set_duration), (gst_segment_set_last_stop),
(gst_segment_set_seek), (gst_segment_set_newsegment),
(gst_segment_to_stream_time), (gst_segment_to_running_time),
(gst_segment_clip):
* gst/gstsegment.h:
Make binding friendly.

18 years agogst/: Sprinkle NULL_TERMINATED to taste.
Andy Wingo [Mon, 21 Nov 2005 18:41:39 +0000 (18:41 +0000)]
gst/: Sprinkle NULL_TERMINATED to taste.

Original commit message from CVS:
2005-11-21  Andy Wingo  <wingo@pobox.com>

* gst/gsttagsetter.h:
* gst/gsttaglist.h:
* gst/gststructure.h:
* gst/gstcaps.h:
* gst/gstutils.h: Sprinkle NULL_TERMINATED to taste.

18 years agogst/gsterror.*: New error category.
Andy Wingo [Mon, 21 Nov 2005 18:27:26 +0000 (18:27 +0000)]
gst/gsterror.*: New error category.

Original commit message from CVS:
2005-11-21  Andy Wingo  <wingo@pobox.com>

* gst/gsterror.c (_gst_core_errors_init):
* gst/gsterror.h (GST_CORE_ERROR_MISSING_PLUGIN): New error
category.

18 years agogst/Makefile.am (gst_headers): Add glib-compat.h. noinst the -private.
Andy Wingo [Mon, 21 Nov 2005 18:16:00 +0000 (18:16 +0000)]
gst/Makefile.am (gst_headers): Add glib-compat.h. noinst the -private.

Original commit message from CVS:
2005-11-21  Andy Wingo  <wingo@pobox.com>

* gst/Makefile.am (gst_headers): Add glib-compat.h.
(noinst_HEADERS): noinst the -private.

18 years agogst/: Remove unimplemented declarations for which we can see no sensible use.
Michael Smith [Mon, 21 Nov 2005 18:10:13 +0000 (18:10 +0000)]
gst/: Remove unimplemented declarations for which we can see no sensible use.

Original commit message from CVS:
* gst/gstplugin.h:
* gst/gstregistry.h:
Remove unimplemented declarations for which we can see no sensible
use.

18 years agogst/gst.h: Include glib-compat.h.
Andy Wingo [Mon, 21 Nov 2005 18:03:22 +0000 (18:03 +0000)]
gst/gst.h: Include glib-compat.h.

Original commit message from CVS:
2005-11-21  Andy Wingo  <wingo@pobox.com>

* gst/gst.h: Include glib-compat.h.

* gst/glib-compat.h: Add G_GNUC_NULL_TERMINATED.

* gst/glib-compat.c: Include the public and the private header.

* gst/glib-compat-private.h: Copied here from glib-compat.h.

* gst/gstvalue.c:
* gst/gstpad.c:
* gst/gstregistryxml.c: s/glib-compat/glib-compat-private/.

18 years agocheck/gst/gstevent.c (create_custom_events): Check that
Andy Wingo [Mon, 21 Nov 2005 17:21:15 +0000 (17:21 +0000)]
check/gst/gstevent.c (create_custom_events): Check that

Original commit message from CVS:
2005-11-21  Andy Wingo  <wingo@pobox.com>

* check/gst/gstevent.c (create_custom_events): Check that
FLUSH_STOP is serialized.

* check/elements/identity.c (event_func):
* check/elements/fakesrc.c (event_func): No stream lock, the core
takes it.

* gst/base/gstbasetransform.c (gst_base_transform_event): No more
stream lock taking, yay.

* gst/gstevent.h (GST_EVENT_FLUSH_STOP): Marked as serialized to
ensure that core takes the stream lock.

* gst/base/gstbasesrc.c (gst_base_src_do_seek): Update for stream
lock name change.

* gst/base/gstbasesink.c (gst_base_sink_event): No need to take
the stream lock for EOS, NEWSEGMENT, or FLUSH_STOP, the core does
it already. For the flush start we do take it though so we get the
right preroll state change messages.

* gst/gstqueue.c (gst_queue_sink_activate_push): No need to take
the stream lock here, the core does it for us.

* gst/gstpad.h (GST_PAD_GET_STREAM_LOCK): Renamed from
GST_STREAM_GET_LOCK.
(GST_PAD_STREAM_LOCK, GST_PAD_STREAM_TRYLOCK)
(GST_PAD_STREAM_UNLOCK, GST_PAD_STREAM_UNLOCK_FULL)
(GST_PAD_STREAM_LOCK_FULL): Renamed from GST_STREAM_*.
(GST_PAD_GET_PREROLL_LOCK): Renamed from GST_PREROLL_GET_LOCK.
(GST_PAD_PREROLL_LOCK, GST_PAD_PREROLL_TRYLOCK)
(GST_PAD_PREROLL_UNLOCK): Renamed from GST_PREROLL_*.

* gst/gstpad.c: Update for stream lock name change.

* gst/base/gstbasesink.c: Update for preroll lock name change.

18 years agogst/: Convert Clock flags to object flags.
Wim Taymans [Mon, 21 Nov 2005 17:12:50 +0000 (17:12 +0000)]
gst/: Convert Clock flags to object flags.

Original commit message from CVS:
* gst/gstclock.c: (gst_clock_init), (gst_clock_set_master),
(gst_clock_get_master):
* gst/gstclock.h:
* gst/gstsystemclock.c: (gst_system_clock_init):
Convert Clock flags to object flags.
Added methods to manage master/slave clocks.

18 years agoMore segment updates, replace code in plugins with segment helper functions.
Wim Taymans [Mon, 21 Nov 2005 17:09:45 +0000 (17:09 +0000)]
More segment updates, replace code in plugins with segment helper functions.

Original commit message from CVS:
* check/gst/gstsegment.c: (GST_START_TEST):
* docs/design/part-TODO.txt:
* gst/base/gstbasesink.c: (gst_base_sink_handle_object),
(gst_base_sink_event), (gst_base_sink_do_sync),
(gst_base_sink_activate_pull), (gst_base_sink_get_position),
(gst_base_sink_query), (gst_base_sink_change_state):
* gst/base/gstbasesink.h:
* gst/base/gstbasesrc.c: (gst_base_src_init), (gst_base_src_query),
(gst_base_src_default_newsegment),
(gst_base_src_configure_segment), (gst_base_src_do_seek),
(gst_base_src_get_range), (gst_base_src_loop),
(gst_base_src_change_state):
* gst/base/gstbasesrc.h:
* gst/base/gstbasetransform.c:
(gst_base_transform_prepare_output_buf),
(gst_base_transform_event), (gst_base_transform_change_state):
* gst/base/gstbasetransform.h:
* gst/base/gstcollectpads.c: (gst_collect_pads_add_pad),
(gst_collect_pads_event):
* gst/base/gstcollectpads.h:
* gst/elements/gstfakesrc.c: (gst_fake_src_init),
(gst_fake_src_create):
* gst/elements/gstfakesrc.h:
* gst/elements/gstidentity.c: (gst_identity_transform_ip):
* gst/gstsegment.c: (gst_segment_init), (gst_segment_set_duration),
(gst_segment_set_last_stop), (gst_segment_set_seek),
(gst_segment_set_newsegment), (gst_segment_to_stream_time),
(gst_segment_to_running_time), (gst_segment_clip):
* gst/gstsegment.h:
More segment updates, replace code in plugins with segment
helper functions.

18 years agogst/elements/gstfdsrc.c: Don't ignore sscanf results
Jan Schmidt [Mon, 21 Nov 2005 16:46:07 +0000 (16:46 +0000)]
gst/elements/gstfdsrc.c: Don't ignore sscanf results

Original commit message from CVS:
* gst/elements/gstfdsrc.c: (gst_fdsrc_uri_set_uri):
Don't ignore sscanf results

18 years agogst/gstpad.h (GST_IS_PAD_FAST): Removed.
Andy Wingo [Mon, 21 Nov 2005 16:41:16 +0000 (16:41 +0000)]
gst/gstpad.h (GST_IS_PAD_FAST): Removed.

Original commit message from CVS:
2005-11-21  Andy Wingo  <wingo@pobox.com>

* gst/gstpad.h (GST_IS_PAD_FAST): Removed.

18 years ago*.*: Ran scripts/update-macros. Oh yes. gst/gstobject.h (GST_OBJECT_GET_LOCK, GST_OBJ...
Andy Wingo [Mon, 21 Nov 2005 16:34:26 +0000 (16:34 +0000)]
*.*: Ran scripts/update-macros. Oh yes. gst/gstobject.h (GST_OBJECT_GET_LOCK, GST_OBJECT_LOCK)

Original commit message from CVS:
2005-11-21  Andy Wingo  <wingo@pobox.com>

* *.h:
* *.c: Ran scripts/update-macros. Oh yes.

* gst/gstobject.h (GST_OBJECT_GET_LOCK, GST_OBJECT_LOCK)
(GST_OBJECT_TRYLOCK, GST_OBJECT_UNLOCK): Renamed from
GST_GET_LOCK, etc.

* scripts/update-macros: New script. Run it on your files to
change GST_LOCK to GST_OBJECT_LOCK, and the same for UNLOCK as
well.

18 years agomore docs fixes, add new api to the docs
Stefan Kost [Mon, 21 Nov 2005 15:47:09 +0000 (15:47 +0000)]
more docs fixes, add new api to the docs

Original commit message from CVS:
* docs/gst/Makefile.am:
* docs/gst/gstreamer-docs.sgml:
* docs/gst/gstreamer-sections.txt:
* docs/gst/gstreamer.types:
* gst/gstinfo.h:
more docs fixes, add new api to the docs

18 years agogst/gstbin.c (gst_bin_remove_func): Wim claims I can remove this state_broadcast...
Andy Wingo [Mon, 21 Nov 2005 15:01:48 +0000 (15:01 +0000)]
gst/gstbin.c (gst_bin_remove_func): Wim claims I can remove this state_broadcast call.

Original commit message from CVS:
2005-11-21  Andy Wingo  <wingo@pobox.com>

* gst/gstbin.c (gst_bin_remove_func): Wim claims I can remove this
state_broadcast call.

18 years agogst/gstsegment.c (gst_segment_init): Initialize abs_rate.
Andy Wingo [Mon, 21 Nov 2005 14:53:34 +0000 (14:53 +0000)]
gst/gstsegment.c (gst_segment_init): Initialize abs_rate.

Original commit message from CVS:
2005-11-21  Andy Wingo  <wingo@pobox.com>

* gst/gstsegment.c (gst_segment_init): Initialize abs_rate.

18 years agogst/gstvalue.c: Fix wrong function calls for arrays.
Julien Moutte [Mon, 21 Nov 2005 14:52:56 +0000 (14:52 +0000)]
gst/gstvalue.c: Fix wrong function calls for arrays.

Original commit message from CVS:
2005-11-21  Julien MOUTTE  <julien@moutte.net>

* gst/gstvalue.c: (gst_value_intersect_array): Fix wrong
function calls for arrays.

18 years agodocs/random/ensonic/media-device-daemon.txt: wild idea, can this be done?
Stefan Kost [Mon, 21 Nov 2005 14:50:22 +0000 (14:50 +0000)]
docs/random/ensonic/media-device-daemon.txt: wild idea, can this be done?

Original commit message from CVS:
* docs/random/ensonic/media-device-daemon.txt:
wild idea, can this be done?
* docs/gst/gstreamer-sections.txt:
* gst/gsterror.h:
* gst/gstfilter.c:
* gst/gstfilter.h:
* gst/gstplugin.h:
* gst/gstpluginfeature.c:
* gst/gsttrace.c:
* gst/gstvalue.c:
* gst/gstvalue.h:
doc fixes and additions

18 years agogst/base/gstbasesrc.c (GST_LIVE_BROADCAST, GST_LIVE_SIGNAL) (GST_LIVE_TIMED_WAIT...
Andy Wingo [Mon, 21 Nov 2005 14:41:26 +0000 (14:41 +0000)]
gst/base/gstbasesrc.c (GST_LIVE_BROADCAST, GST_LIVE_SIGNAL) (GST_LIVE_TIMED_WAIT, GST_LIVE_WAIT, GST_LIVE_GET_COND) (...

Original commit message from CVS:
2005-11-21  Andy Wingo  <wingo@pobox.com>

* gst/base/gstbasesrc.c (GST_LIVE_BROADCAST, GST_LIVE_SIGNAL)
(GST_LIVE_TIMED_WAIT, GST_LIVE_WAIT, GST_LIVE_GET_COND)
(GST_LIVE_UNLOCK, GST_LIVE_TRYLOCK, GST_LIVE_LOCK)
(GST_LIVE_GET_LOCK): Moved here from gstbasesrc.h. They are
private to the basesrc implementation.

18 years agogst/gstpad.c (gst_pad_send_event): Doc more. Take stream lock on behalf of event...
Andy Wingo [Mon, 21 Nov 2005 14:34:07 +0000 (14:34 +0000)]
gst/gstpad.c (gst_pad_send_event): Doc more. Take stream lock on behalf of event function if necessary. It should no ...

Original commit message from CVS:
2005-11-21  Andy Wingo  <wingo@pobox.com>

* gst/gstpad.c (gst_pad_send_event): Doc more. Take stream lock on
behalf of event function if necessary. It should no longer be
necessary to take the stream lock in pad's event functions. Fixes
#320299.

18 years agoRename gst_caps_structure_fixate_* to gst_structure_fixate_* (#322027)
Jan Schmidt [Mon, 21 Nov 2005 14:28:21 +0000 (14:28 +0000)]
Rename gst_caps_structure_fixate_* to gst_structure_fixate_* (#322027)

Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
* gst/gststructure.c: (gst_structure_fixate_field_nearest_int),
(gst_structure_fixate_field_nearest_double),
(gst_structure_fixate_field_boolean):
* gst/gststructure.h:
* win32/common/libgstreamer.def:
* win32/gstreamer.def:

Rename gst_caps_structure_fixate_* to gst_structure_fixate_*
(#322027)

18 years agogst/elements/gstfdsrc.*: Port fd:// URI handler from 0.8 to fdsrc
Jan Schmidt [Mon, 21 Nov 2005 14:25:21 +0000 (14:25 +0000)]
gst/elements/gstfdsrc.*: Port fd:// URI handler from 0.8 to fdsrc

Original commit message from CVS:
* gst/elements/gstfdsrc.c: (_do_init), (gst_fdsrc_class_init),
(gst_fdsrc_init), (gst_fdsrc_dispose), (gst_fdsrc_set_property),
(gst_fdsrc_uri_get_type), (gst_fdsrc_uri_get_protocols),
(gst_fdsrc_uri_get_uri), (gst_fdsrc_uri_set_uri),
(gst_fdsrc_uri_handler_init):
* gst/elements/gstfdsrc.h:
Port fd:// URI handler from 0.8 to fdsrc

18 years agoMore segment updates and more checks.
Wim Taymans [Mon, 21 Nov 2005 13:26:51 +0000 (13:26 +0000)]
More segment updates and more checks.

Original commit message from CVS:
* check/gst/gstsegment.c: (GST_START_TEST), (gstsegments_suite),
(main):
* gst/gstsegment.c: (gst_segment_init), (gst_segment_set_duration),
(gst_segment_set_last_stop), (gst_segment_set_seek),
(gst_segment_set_newsegment), (gst_segment_to_stream_time),
(gst_segment_to_running_time), (gst_segment_clip):
* gst/gstsegment.h:
More segment updates and more checks.

18 years agogst/gstvalue.*: Drop leading '%' from GST_FOURCC_FORMAT, thus making it consistent...
Tim-Philipp Müller [Mon, 21 Nov 2005 13:26:40 +0000 (13:26 +0000)]
gst/gstvalue.*: Drop leading '%' from GST_FOURCC_FORMAT, thus making it consistent with our other format defines (#32...

Original commit message from CVS:
* gst/gstvalue.c: (gst_value_transform_fourcc_string),
(gst_value_serialize_fourcc):
* gst/gstvalue.h:
Drop leading '%' from GST_FOURCC_FORMAT, thus making it
consistent with our other format defines (#320324).

18 years agogst/gstvalue.c: Revert previous commit. Value lists are by definition not fixed,...
Tim-Philipp Müller [Mon, 21 Nov 2005 13:12:18 +0000 (13:12 +0000)]
gst/gstvalue.c: Revert previous commit. Value lists are by definition not fixed, as they are a list of possible values.

Original commit message from CVS:
* gst/gstvalue.c: (gst_value_is_fixed):
Revert previous commit. Value lists are by definition
not fixed, as they are a list of possible values.

18 years agogst/gstevent.h (GST_EVENT_FILLER): Removed. Can be added back during the stable serie...
Andy Wingo [Mon, 21 Nov 2005 13:03:36 +0000 (13:03 +0000)]
gst/gstevent.h (GST_EVENT_FILLER): Removed. Can be added back during the stable series if we need it. Fixes #319178.

Original commit message from CVS:
2005-11-21  Andy Wingo  <wingo@pobox.com>

* gst/gstevent.h (GST_EVENT_FILLER): Removed. Can be added back
during the stable series if we need it. Fixes #319178.

* gst/gstevent.c (gst_event_new_filler): Removed.

* check/gst/gstevent.c: Update comment about filler events.

18 years agogst/gstvalue.c: Should handle both value arrays and value lists.
Tim-Philipp Müller [Mon, 21 Nov 2005 12:42:41 +0000 (12:42 +0000)]
gst/gstvalue.c: Should handle both value arrays and value lists.

Original commit message from CVS:
* gst/gstvalue.c: (gst_value_is_fixed):
Should handle both value arrays and value lists.

18 years agogst/gstvalue.c (gst_value_is_fixed): Use gst_value_array functions to access arrays...
Alessandro Dessina [Mon, 21 Nov 2005 12:27:01 +0000 (12:27 +0000)]
gst/gstvalue.c (gst_value_is_fixed): Use gst_value_array functions to access arrays. Fixes #321962.

Original commit message from CVS:
2005-11-21  Andy Wingo  <wingo@pobox.com>

patch by: Alessandro Dessina <alessandro nnva org>

* gst/gstvalue.c (gst_value_is_fixed): Use gst_value_array
functions to access arrays. Fixes #321962.

18 years agodocs/gst/gstreamer.types: gst_collectpads_get_type => gst_collect_pads_get_type.
Tim-Philipp Müller [Mon, 21 Nov 2005 11:26:07 +0000 (11:26 +0000)]
docs/gst/gstreamer.types: gst_collectpads_get_type => gst_collect_pads_get_type.

Original commit message from CVS:
* docs/gst/gstreamer.types:
gst_collectpads_get_type => gst_collect_pads_get_type.
* gst/base/gstbasetransform.c:
Remove unused SIGNAL_HANDOFF enum.

18 years agogst/gstevent.h (GstEventTypeFlags): New data type, the flags of the event type (upstr...
Andy Wingo [Mon, 21 Nov 2005 11:06:42 +0000 (11:06 +0000)]
gst/gstevent.h (GstEventTypeFlags): New data type, the flags of the event type (upstream, downstream, serialized). Re...

Original commit message from CVS:
2005-11-21  Andy Wingo  <wingo@pobox.com>

* gst/gstevent.h (GstEventTypeFlags): New data type, the flags of
the event type (upstream, downstream, serialized). Renamed
GST_EVDIR_* and GST_EVSER to GST_EVENT_TYPE_*.
(GstEventType): Use GstEventTypeFlags. Rename CUSTOM_UP to
CUSTOM_UPSTREAM, CUSTOM_DS to CUSTOM_DOWNSTREAM, etc.

* gst/gstevent.c: Update for new CUSTOM event names.

* check/gst/gstevent.c: Update check for new CUSTOM event names.

* gst/gstevent.h:
* gst/gstevent.c (gst_event_type_get_flags): New function. Fixes
bug #319392.

18 years agoRename gst_collecpads_foo() => gst_collect_pads_foo(). Document unimplemented functio...
Tim-Philipp Müller [Mon, 21 Nov 2005 11:00:03 +0000 (11:00 +0000)]
Rename gst_collecpads_foo() => gst_collect_pads_foo(). Document unimplemented functions as unimplemented (#320766).

Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
* win32/common/libgstbase.def:
* win32/libgstbase.def:
* gst/base/gstcollectpads.c: (gst_collect_pads_base_init),
(gst_collect_pads_class_init), (gst_collect_pads_init),
(gst_collect_pads_finalize), (gst_collect_pads_new),
(gst_collect_pads_set_function), (gst_collect_pads_add_pad),
(gst_collect_pads_remove_pad), (gst_collect_pads_is_active),
(gst_collect_pads_collect), (gst_collect_pads_collect_range),
(gst_collect_pads_start), (gst_collect_pads_stop),
(gst_collect_pads_peek), (gst_collect_pads_pop),
(gst_collect_pads_available), (gst_collect_pads_read),
(gst_collect_pads_flush), (gst_collect_pads_event),
(gst_collect_pads_chain):
* gst/base/gstcollectpads.h:
Rename gst_collecpads_foo() => gst_collect_pads_foo(). Document
unimplemented functions as unimplemented (#320766).

18 years agogst/gstmessage.c: Improve docs for DURATION message (usage of duration parameter...
Tim-Philipp Müller [Mon, 21 Nov 2005 10:41:03 +0000 (10:41 +0000)]
gst/gstmessage.c: Improve docs for DURATION message (usage of duration parameter) (#320113)

Original commit message from CVS:
* gst/gstmessage.c:
Improve docs for DURATION message (usage of duration parameter)
(#320113)

18 years agoupdate
Thomas Vander Stichele [Mon, 21 Nov 2005 10:04:18 +0000 (10:04 +0000)]
update

Original commit message from CVS:
update

18 years agoadd latest .pc file to spec
Christian Schaller [Mon, 21 Nov 2005 09:44:46 +0000 (09:44 +0000)]
add latest .pc file to spec

Original commit message from CVS:
add latest .pc file to spec

18 years agoAdded segment helper structure and methods. Not fully implemented yet.
Wim Taymans [Sun, 20 Nov 2005 19:11:09 +0000 (19:11 +0000)]
Added segment helper structure and methods. Not fully implemented yet.

Original commit message from CVS:
* check/Makefile.am:
* check/gst/gstsegment.c: (GST_START_TEST), (gstevents_suite),
(main):
* gst/Makefile.am:
* gst/gst.h:
* gst/gstsegment.c: (gst_segment_init), (gst_segment_set_duration),
(gst_segment_set_seek), (gst_segment_set_newsegment),
(gst_segment_to_stream_time), (gst_segment_to_running_time),
(gst_segment_clip):
* gst/gstsegment.h:
Added segment helper structure and methods. Not fully implemented
yet.
Added segment check.

18 years agocheck/gst/gstvalue.c: Add a deserialisation test for fractions
Jan Schmidt [Sun, 20 Nov 2005 17:12:49 +0000 (17:12 +0000)]
check/gst/gstvalue.c: Add a deserialisation test for fractions

Original commit message from CVS:
* check/gst/gstvalue.c: (GST_START_TEST), (gst_value_suite):
Add a deserialisation test for fractions
* examples/metadata/read-metadata.c: (message_loop),
(make_pipeline), (main):
Fix up metadata reading sample.
* gst/base/gstbasesink.c: (gst_base_sink_do_sync):
Debug format fix
* gst/base/gstbasesrc.c: (gst_base_src_default_negotiate):
Don't try and fixate empty caps
* gst/gst_private.h:
Wrap in G_BEGIN_DECLS/G_END_DECLS
* gst/gstvalue.c: (gst_value_collect_fraction),
(gst_value_set_fraction), (gst_value_get_fraction_denominator),
(gst_value_transform_string_fraction),
(gst_value_compare_fraction):
Add some extra guards to ensure that we don't end up
with an invalid denominator of 0 in a gstfraction and
that fractions always get reduced.

18 years agoSomething went wrong with changelog in last commit
Wim Taymans [Sun, 20 Nov 2005 14:56:13 +0000 (14:56 +0000)]
Something went wrong with changelog in last commit

Original commit message from CVS:
Something went wrong with changelog in last commit

18 years agoDoc fixes.
Wim Taymans [Sun, 20 Nov 2005 14:50:43 +0000 (14:50 +0000)]
Doc fixes.

Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
* gst/gstbuffer.h:
* gst/gstelement.c:
* gst/gstformat.c:
* gst/gstformat.h:
* gst/gstindex.h:
* gst/gstquery.c:
* gst/gstquery.h:
* gst/gstvalue.c:
Doc fixes.

18 years agoMake a proper enum of the flag.
Wim Taymans [Sun, 20 Nov 2005 13:28:11 +0000 (13:28 +0000)]
Make a proper enum of the flag.

Original commit message from CVS:
* docs/design/part-TODO.txt:
* gst/gstcaps.h:
Make a proper enum of the flag.

18 years agoAdd type to quark and type to string conversions.
Wim Taymans [Sat, 19 Nov 2005 18:57:00 +0000 (18:57 +0000)]
Add type to quark and type to string conversions.

Original commit message from CVS:
* docs/design/part-TODO.txt:
* gst/gstformat.c: (_gst_format_initialize), (gst_format_get_name),
(gst_format_to_quark), (gst_format_register):
* gst/gstformat.h:
* gst/gstquery.c: (_gst_query_initialize),
(gst_query_type_get_name), (gst_query_type_to_quark),
(gst_query_type_register):
* gst/gstquery.h:
Add type to quark and type to string conversions.

18 years agogst/gstbuffer.h (GST_BUFFER_FLAG_ORIGINAL): Removed. Fixes #320097.
Andy Wingo [Sat, 19 Nov 2005 18:32:01 +0000 (18:32 +0000)]
gst/gstbuffer.h (GST_BUFFER_FLAG_ORIGINAL): Removed. Fixes #320097.

Original commit message from CVS:
2005-11-19  Andy Wingo  <wingo@pobox.com>

* gst/gstbuffer.h (GST_BUFFER_FLAG_ORIGINAL): Removed. Fixes
#320097.

18 years agoMake message handling overridable.
Wim Taymans [Sat, 19 Nov 2005 18:28:40 +0000 (18:28 +0000)]
Make message handling overridable.

Original commit message from CVS:
* docs/design/part-TODO.txt:
* gst/gstbin.c: (gst_bin_class_init), (gst_bin_provide_clock_func),
(gst_bin_add_func), (gst_bin_remove_func), (bin_bus_handler),
(gst_bin_handle_message_func):
* gst/gstbin.h:
Make message handling overridable.

18 years agogst/gstpad.h (GST_PAD_IS_USABLE): Removed. Fixes #321235.
Andy Wingo [Sat, 19 Nov 2005 18:26:35 +0000 (18:26 +0000)]
gst/gstpad.h (GST_PAD_IS_USABLE): Removed. Fixes #321235.

Original commit message from CVS:
2005-11-19  Andy Wingo  <wingo@pobox.com>

* gst/gstpad.h (GST_PAD_IS_USABLE): Removed. Fixes #321235.

18 years agogst/gstclock.*: Change resolution to be a GstClockTime.
Andy Wingo [Sat, 19 Nov 2005 18:17:29 +0000 (18:17 +0000)]
gst/gstclock.*: Change resolution to be a GstClockTime.

Original commit message from CVS:
2005-11-19  Andy Wingo  <wingo@pobox.com>

* gst/gstclock.h:
* gst/gstclock.c (GstClock, GstClockClass): Change resolution to
be a GstClockTime.
(gst_clock_set_resolution, gst_clock_get_resolution): Resolution
is a GstClockTime. Fixes #321710.

18 years agogst/gstclock.h (GstClock): Remove offset property. Add internal_calibration and exter...
Andy Wingo [Sat, 19 Nov 2005 18:06:56 +0000 (18:06 +0000)]
gst/gstclock.h (GstClock): Remove offset property. Add internal_calibration and external_calibration. Fix padding. Pa...

Original commit message from CVS:
2005-11-19  Andy Wingo  <wingo@pobox.com>

* gst/gstclock.h (GstClock): Remove offset property. Add
internal_calibration and external_calibration. Fix padding. Pad
also by GstClockTime so we don't run into problems.

* gst/gstclock.c (gst_clock_set_rate_offset): Remove.
(gst_clock_get_rate_offset): Remove.
(gst_clock_set_time_adjust): Remove. Fixes #321712.

18 years agogst/gstutils.h: gst/gstutils.c (g_static_rec_cond_wait)
Andy Wingo [Sat, 19 Nov 2005 17:50:52 +0000 (17:50 +0000)]
gst/gstutils.h: gst/gstutils.c (g_static_rec_cond_wait)

Original commit message from CVS:
2005-11-19  Andy Wingo  <wingo@pobox.com>

* gst/gstutils.h:
* gst/gstutils.c (g_static_rec_cond_wait)
(g_static_rec_cond_timed_wait): Removed, no longer needed.

* gst/gstbin.c: Remove terrible continue_state prototype.

* gst/gstelement.h (gst_element_continue_state): Make public.

* gst/gstelement.h:
* gst/gstelement.c (gst_element_commit_state): Removed, replaced
by continue_state. Fixes #319389.

18 years agogst/gstindex.h (GstIndexFilter): Actually pass on the user_data.
Andy Wingo [Sat, 19 Nov 2005 17:28:58 +0000 (17:28 +0000)]
gst/gstindex.h (GstIndexFilter): Actually pass on the user_data.

Original commit message from CVS:
2005-11-19  Andy Wingo  <wingo@pobox.com>

* gst/gstindex.h (GstIndexFilter): Actually pass on the user_data.
Really fixes #168438. However I don't see anywhere where the
filter function is called... stupid GStreamer...

18 years agogst/gstindex.h (GstIndex): Add field for user_data_destroy. We don't have a dispose...
Andy Wingo [Sat, 19 Nov 2005 17:26:27 +0000 (17:26 +0000)]
gst/gstindex.h (GstIndex): Add field for user_data_destroy. We don't have a dispose function, so it won't get called ...

Original commit message from CVS:
2005-11-19  Andy Wingo  <wingo@pobox.com>

* gst/gstindex.h (GstIndex): Add field for user_data_destroy. We
don't have a dispose function, so it won't get called when the
object is unreffed, but oh well!

* gst/gstindex.c (gst_index_set_filter_full): New API function,
allows a destroy function to be set so user_data can be freed.
Fixes #168438.
(gst_index_set_filter): Call gst_index_set_filter_full.

18 years agocheck/gst/gstvalue.c (test_string): Add test for bug #165650.
Andy Wingo [Sat, 19 Nov 2005 17:08:23 +0000 (17:08 +0000)]
check/gst/gstvalue.c (test_string): Add test for bug #165650.

Original commit message from CVS:
2005-11-19  Andy Wingo  <wingo@pobox.com>

* check/gst/gstvalue.c (test_string): Add test for bug #165650.

* gst/gstvalue.c (gst_string_wrap): Trying to serialize a NULL
string should produce an error, given the lack of a way to
represent NULL strings. Fixes #165650.

18 years agogst/gstvalue.h: gst/gstvalue.c (gst_value_array_append_value) (gst_value_array_prepen...
Andy Wingo [Sat, 19 Nov 2005 16:46:30 +0000 (16:46 +0000)]
gst/gstvalue.h: gst/gstvalue.c (gst_value_array_append_value) (gst_value_array_prepend_value, gst_value_array_get_size)

Original commit message from CVS:
2005-11-19  Andy Wingo  <wingo@pobox.com>

* gst/gstvalue.h:
* gst/gstvalue.c (gst_value_array_append_value)
(gst_value_array_prepend_value, gst_value_array_get_size)
(gst_value_array_get_value): New API, copied from
gst_value_list_*, only operates on arrays.
(gst_value_list_append_value, gst_value_list_prepend_value)
(gst_value_list_concat, gst_value_list_get_size)
(gst_value_list_get_value): Only operate on lists. Fixes #156633.

* gst/gstvalue.c (gst_value_init_list_or_array): Renamed from
init_list, because it works on both.
(copy_garray_of_gstvalue): Renamed from gst_value_list_copy_array.
(gst_value_copy_list_or_array): Renamed from copy_list.
(gst_value_free_list_or_array): Renamed from free_list.
(gst_value_collect_list_or_array): Renamed from collect_list.
(gst_value_lcopy_list_or_array): Renamed from lcopy_list.
(gst_value_list_or_array_peek_pointer): Renamed from
list_peek_pointer.
(_gst_value_array_value_table, _gst_value_list_value_table):
Update value table functions.
(gst_value_compare_list_or_array): Renamed from compare_list.

18 years agogsttaglist.h: Whoops, foreach function returns void. Also fix some constness.
Andy Wingo [Sat, 19 Nov 2005 16:05:11 +0000 (16:05 +0000)]
gsttaglist.h: Whoops, foreach function returns void. Also fix some constness.

Original commit message from CVS:
2005-11-19  Andy Wingo  <wingo@pobox.com>

* gsttaglist.h: Whoops, foreach function returns void. Also fix
some constness.

18 years agogst/gsttaglist.*: Operates on a const
Andy Wingo [Sat, 19 Nov 2005 15:51:41 +0000 (15:51 +0000)]
gst/gsttaglist.*: Operates on a const

Original commit message from CVS:
2005-11-19  Andy Wingo  <wingo@pobox.com>

* gst/gsttaglist.c:
* gst/gsttaglist.h (gst_tag_list_foreach): Operates on a const
GstTagList*. Fixes #143472.

* gst/gststructure.h: Clarify what the foreach/map functions can
or can't do to their arguments.

18 years agogst/gstclock.c: Doc and API fixes.
Wim Taymans [Fri, 18 Nov 2005 19:21:50 +0000 (19:21 +0000)]
gst/gstclock.c: Doc and API fixes.

Original commit message from CVS:
* gst/gstclock.c: (gst_clock_set_calibration),
(gst_clock_get_calibration):
Doc and API fixes.
Callibration can be set with internal time equal to current
internal time too.

18 years agogst/gsterror.*: document
Thomas Vander Stichele [Fri, 18 Nov 2005 18:55:24 +0000 (18:55 +0000)]
gst/gsterror.*: document

Original commit message from CVS:

* gst/gsterror.c:
* gst/gsterror.h:
document

18 years agodocument on requirements for moving plugins to good
Thomas Vander Stichele [Fri, 18 Nov 2005 18:38:41 +0000 (18:38 +0000)]
document on requirements for moving plugins to good

Original commit message from CVS:
document on requirements for moving plugins to good

18 years agoAdd net pkgconfig files.
Andy Wingo [Fri, 18 Nov 2005 16:24:56 +0000 (16:24 +0000)]
Add net pkgconfig files.

Original commit message from CVS:
2005-11-18  Andy Wingo  <wingo@pobox.com>

* configure.ac:
* pkgconfig/gstreamer-net.pc.in:
* pkgconfig/gstreamer-net-uninstalled.pc.in:
* pkgconfig/Makefile.am: Add net pkgconfig files.

18 years agogst/: docs fixes
Stefan Kost [Fri, 18 Nov 2005 16:04:28 +0000 (16:04 +0000)]
gst/: docs fixes

Original commit message from CVS:
* gst/gstcaps.c:
* gst/gstghostpad.c:
* gst/gsttrace.c:
* gst/gstvalue.c:
* gst/gstvalue.h:
docs fixes

18 years agogst/net/gstnetclientclock.c: Turn off debugging.
Andy Wingo [Fri, 18 Nov 2005 15:52:24 +0000 (15:52 +0000)]
gst/net/gstnetclientclock.c: Turn off debugging.

Original commit message from CVS:
2005-11-18  Andy Wingo  <wingo@pobox.com>

* gst/net/gstnetclientclock.c: Turn off debugging.

* check/net/gstnetclientclock.c (test_functioning): Assert that the
times connverge somewhat. Can't make a real test.

18 years agogst/net/gstnetclientclock.c (do_linear_regression): Use all integer arithmetic. Retur...
Andy Wingo [Fri, 18 Nov 2005 15:30:18 +0000 (15:30 +0000)]
gst/net/gstnetclientclock.c (do_linear_regression): Use all integer arithmetic. Return the minimum of the domain, whi...

Original commit message from CVS:
2005-11-18  Andy Wingo  <wingo@pobox.com>

* gst/net/gstnetclientclock.c (do_linear_regression): Use all
integer arithmetic. Return the minimum of the domain, which can be
set as "internal" for gst_clock_set_calibration.
(gst_net_client_clock_observe_times): Call _set_calibration.
(gst_net_client_clock_new): Call _set_calibration instead of
rate_offset.

* check/net/gstnetclientclock.c (test_functioning): Use the right
adjustment api.

* gst/gstclock.h:
* gst/gstclock.c (gst_clock_get_calibration)
(gst_clock_set_calibration): New functions, obsolete the ones I
added yesterday. Doh. Precision issues mean we have to extrapolate
from a point in the more recent past than 1970.
(gst_clock_get_rate_offset, gst_clock_set_rate_offset): Mark as
obsolete.
(gst_clock_adjust_unlocked): Use the right calibration data.

18 years agogst/base/gstbasesink.c: Also reset the ->current_* values in READY->PAUSED
Edward Hervey [Fri, 18 Nov 2005 14:49:28 +0000 (14:49 +0000)]
gst/base/gstbasesink.c: Also reset the ->current_* values in READY->PAUSED

Original commit message from CVS:
* gst/base/gstbasesink.c: (gst_base_sink_change_state):
Also reset the ->current_* values in READY->PAUSED

18 years agogst/net/gstnetclientclock.c (gst_net_client_clock_thread): Whoops, check the right...
Andy Wingo [Fri, 18 Nov 2005 14:13:28 +0000 (14:13 +0000)]
gst/net/gstnetclientclock.c (gst_net_client_clock_thread): Whoops, check the right fd. Also add some debugging.

Original commit message from CVS:
2005-11-18  Andy Wingo  <wingo@pobox.com>

* gst/net/gstnetclientclock.c (gst_net_client_clock_thread):
Whoops, check the right fd. Also add some debugging.
(gst_net_client_clock_observe_times): Adjust for int64 offset.
(do_linear_regression): Add a crapload of debugging. Subtract off
the minimum values from the input series to discard unneeded bits.
Use only int arithmetic. There is still double arithmetic when
calculating the intercept that needs fixing. Return boolean to
indicate success; FALSE would mean the domain or range is too
great. Still needs fixes.

18 years agogst/base/gstbasesink.c: For the current position in stream time, we need to subtract...
Wim Taymans [Fri, 18 Nov 2005 13:18:44 +0000 (13:18 +0000)]
gst/base/gstbasesink.c: For the current position in stream time, we need to subtract accumulated time.

Original commit message from CVS:
* gst/base/gstbasesink.c: (gst_base_sink_get_position):
For the current position in stream time, we need to subtract
accumulated time.

* gst/gstsystemclock.c: (gst_system_clock_async_thread):
Release lock before calling the callback function of async
entries.

18 years agogst/net/gstnetclientclock.c (gst_net_client_clock_class_init): Port goes all the...
Andy Wingo [Fri, 18 Nov 2005 11:57:30 +0000 (11:57 +0000)]
gst/net/gstnetclientclock.c (gst_net_client_clock_class_init): Port goes all the way to MAXUINT16.

Original commit message from CVS:
2005-11-18  Andy Wingo  <wingo@pobox.com>

* gst/net/gstnetclientclock.c (gst_net_client_clock_class_init):
Port goes all the way to MAXUINT16.

* gst/net/gstnettimeprovider.c: Make the port range the same as
for the kernel: 0 assigns, otherwise ports are less than
MAXUINT16.

* check/net/gstnettimeprovider.c: Adapt for 0 == kernel assigns
port change.

* check/net/gstnetclientclock.c (test_functioning): Add the start
of another test.

18 years agogst/gstbin.*: Removing a clock provider from a bin, triggers a clock lost message...
Wim Taymans [Fri, 18 Nov 2005 11:03:10 +0000 (11:03 +0000)]
gst/gstbin.*: Removing a clock provider from a bin, triggers a clock lost message so that a new clock will be selected.

Original commit message from CVS:
* gst/gstbin.c: (gst_bin_provide_clock_func), (gst_bin_add_func),
(gst_bin_remove_func), (bin_bus_handler):
* gst/gstbin.h:
Removing a clock provider from a bin, triggers a clock lost message
so that a new clock will be selected.
Adding a clock to a bin triggers a clock provider message.
Make sure we reselect a clock when we received a clock lost message.
Keep a reference to the element that provided the clock.

18 years agogst/net/gstnetclientclock.c (gst_net_client_clock_new): Adjust the clock initially...
Andy Wingo [Fri, 18 Nov 2005 10:54:55 +0000 (10:54 +0000)]
gst/net/gstnetclientclock.c (gst_net_client_clock_new): Adjust the clock initially so it produces values around the b...

Original commit message from CVS:
2005-11-18  Andy Wingo  <wingo@pobox.com>

* gst/net/gstnetclientclock.c (gst_net_client_clock_new): Adjust
the clock initially so it produces values around the base time.
(gst_net_client_clock_class_init): Typo fix.
(gst_net_client_clock_thread): Add note on when the socket gets
closed.

18 years agogst/net/gstnetclientclock.c: Free remote and local time arrays.
Wim Taymans [Thu, 17 Nov 2005 18:50:14 +0000 (18:50 +0000)]
gst/net/gstnetclientclock.c: Free remote and local time arrays.

Original commit message from CVS:
* gst/net/gstnetclientclock.c: (gst_net_client_clock_finalize):
Free remote and local time arrays.

18 years agogst/net/gstnetclientclock.c: Fix compilation, uninitialized vars and a forgotten...
Wim Taymans [Thu, 17 Nov 2005 18:18:41 +0000 (18:18 +0000)]
gst/net/gstnetclientclock.c: Fix compilation, uninitialized vars and a forgotten continue.

Original commit message from CVS:
* gst/net/gstnetclientclock.c: (do_linear_regression),
(gst_net_client_clock_do_select), (gst_net_client_clock_thread):
Fix compilation, uninitialized vars and a forgotten continue.

18 years agocheck/: Add a most minimal test for the net client clock. More to come later.
Andy Wingo [Thu, 17 Nov 2005 17:55:17 +0000 (17:55 +0000)]
check/: Add a most minimal test for the net client clock. More to come later.

Original commit message from CVS:
2005-11-17  Andy Wingo  <wingo@pobox.com>

* check/Makefile.am (check_PROGRAMS):
* check/net/gstnetclientclock.c: Add a most minimal test for the
net client clock. More to come later.

* gst/net/gstnet.h:
* gst/net/Makefile.am: Add netclientclock.

* gst/net/gstnetclientclock.h:
* gst/net/gstnetclientclock.c: New files, implement an untested
GstClock that takes its time from a network time provider.
Implements the algorithm in network-clock.scm.

* tests/network-clock.scm (*window-size*): Rename from
*queue-length*.
* tests/network-clock.scm (network-time):
* tests/network-clock-utils.scm (q-push): Update callers.

18 years agogst/gstbin.c: And unref the child too..
Wim Taymans [Thu, 17 Nov 2005 16:02:48 +0000 (16:02 +0000)]
gst/gstbin.c: And unref the child too..

Original commit message from CVS:
* gst/gstbin.c: (gst_bin_provide_clock_func),
(gst_bin_sort_iterator_new):
And unref the child too..

18 years agogst/gstbin.c: Refactor the sort iterator so it can be used while holding the
Wim Taymans [Thu, 17 Nov 2005 14:51:11 +0000 (14:51 +0000)]
gst/gstbin.c: Refactor the sort iterator so it can be used while holding the

Original commit message from CVS:
* gst/gstbin.c: (gst_bin_dispose), (gst_bin_provide_clock_func),
(gst_bin_sort_iterator_new), (gst_bin_iterate_sorted):
Refactor the sort iterator so it can be used while holding the
LOCK too.
Make clock selection select a clock closest to the source.

18 years agogst/gstclock.*: Anonymous structs are a gcc (and some other compilers) extension...
Michael Smith [Thu, 17 Nov 2005 12:36:30 +0000 (12:36 +0000)]
gst/gstclock.*: Anonymous structs are a gcc (and some other compilers) extension, so don't use them. Since this is on...

Original commit message from CVS:
* gst/gstclock.c: (gst_clock_init), (gst_clock_adjust_unlocked),
(gst_clock_set_rate_offset), (gst_clock_get_rate_offset):
* gst/gstclock.h:
Anonymous structs are a gcc (and some other compilers) extension, so
don't use them. Since this is only for ABI-compatibility, and our
API/ABI freeze is over in a few days, this whole thing will only
last a few days, so don't bother trying to think up a meaningful
name for the struct.

18 years agogst/gstclock.h (GstClock): Add rate and offset properties, preserving ABI stability...
Andy Wingo [Thu, 17 Nov 2005 11:51:49 +0000 (11:51 +0000)]
gst/gstclock.h (GstClock): Add rate and offset properties, preserving ABI stability. Add rate/offset accessors. Will ...

Original commit message from CVS:
2005-11-17  Andy Wingo  <wingo@pobox.com>

* gst/gstclock.h (GstClock): Add rate and offset properties,
preserving ABI stability. Add rate/offset accessors. Will file bug
for the freeze break.

* gst/gstclock.c (gst_clock_adjust_unlocked): Implement using rate
and offset, trying to keep precision and avoiding
underflow/overflow.
(gst_clock_set_rate_offset, gst_clock_get_rate_offset): New
functions. Make gst_clock_set_time_adjust obsolete.
(gst_clock_set_time_adjust): Note that this function is obsolete.
Will file bug soon.

* gst/base/gstbasetransform.h: Make the ABI-stability hack
greppable by using GST_PADDING-1+1.

18 years agoremove completely outdated random docs
Thomas Vander Stichele [Thu, 17 Nov 2005 11:25:34 +0000 (11:25 +0000)]
remove completely outdated random docs

Original commit message from CVS:
remove completely outdated random docs

18 years agogst/gstmessage.c: Assertion should check for CLOCK_LOST, not NEW_CLOCK (#321648).
Tim-Philipp Müller [Thu, 17 Nov 2005 09:37:55 +0000 (09:37 +0000)]
gst/gstmessage.c: Assertion should check for CLOCK_LOST, not NEW_CLOCK (#321648).

Original commit message from CVS:
Reviewed by: Tim-Philipp Müller  <tim at centricular dot net>
* gst/gstmessage.c: (gst_message_parse_clock_lost):
Assertion should check for CLOCK_LOST, not NEW_CLOCK (#321648).
* gst/gstpadtemplate.h:
* gst/gstpluginfeature.h:
Don't use c++ style comments in headers (#321638).