1. 20 Nov, 2005 5 commits
    • Wim Taymans's avatar
      Added segment helper structure and methods. Not fully implemented yet. · 2754334f
      Wim Taymans authored
      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.
      2754334f
    • Jan Schmidt's avatar
      check/gst/gstvalue.c: Add a deserialisation test for fractions · c05ba2d6
      Jan Schmidt authored
      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.
      c05ba2d6
    • Wim Taymans's avatar
      Something went wrong with changelog in last commit · 1bd55780
      Wim Taymans authored
      Original commit message from CVS:
      Something went wrong with changelog in last commit
      1bd55780
    • Wim Taymans's avatar
      Doc fixes. · 10a32af3
      Wim Taymans authored
      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.
      10a32af3
    • Wim Taymans's avatar
      Make a proper enum of the flag. · deacfd8e
      Wim Taymans authored
      Original commit message from CVS:
      * docs/design/part-TODO.txt:
      * gst/gstcaps.h:
      Make a proper enum of the flag.
      deacfd8e
  2. 19 Nov, 2005 13 commits
    • Wim Taymans's avatar
      Add type to quark and type to string conversions. · 8d46970e
      Wim Taymans authored
      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.
      8d46970e
    • Andy Wingo Wingo's avatar
      gst/gstbuffer.h (GST_BUFFER_FLAG_ORIGINAL): Removed. Fixes #320097. · 9192ae50
      Andy Wingo Wingo authored
      Original commit message from CVS:
      2005-11-19  Andy Wingo  <wingo@pobox.com>
      
      * gst/gstbuffer.h (GST_BUFFER_FLAG_ORIGINAL): Removed. Fixes
      #320097.
      9192ae50
    • Wim Taymans's avatar
      Make message handling overridable. · 5209b1b0
      Wim Taymans authored
      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.
      5209b1b0
    • Andy Wingo Wingo's avatar
      gst/gstpad.h (GST_PAD_IS_USABLE): Removed. Fixes #321235. · 5061adaf
      Andy Wingo Wingo authored
      Original commit message from CVS:
      2005-11-19  Andy Wingo  <wingo@pobox.com>
      
      * gst/gstpad.h (GST_PAD_IS_USABLE): Removed. Fixes #321235.
      5061adaf
    • Andy Wingo Wingo's avatar
      gst/gstclock.*: Change resolution to be a GstClockTime. · f082cb34
      Andy Wingo Wingo authored
      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.
      f082cb34
    • Andy Wingo Wingo's avatar
      gst/gstclock.h (GstClock): Remove offset property. Add internal_calibration... · c0b753f7
      Andy Wingo Wingo authored
      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.
      c0b753f7
    • Andy Wingo Wingo's avatar
      gst/gstutils.h: gst/gstutils.c (g_static_rec_cond_wait) · 5748aa11
      Andy Wingo Wingo authored
      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.
      5748aa11
    • Andy Wingo Wingo's avatar
      gst/gstindex.h (GstIndexFilter): Actually pass on the user_data. · 4bccc997
      Andy Wingo Wingo authored
      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...
      4bccc997
    • Andy Wingo Wingo's avatar
      gst/gstindex.h (GstIndex): Add field for user_data_destroy. We don't have a... · 4a61de0e
      Andy Wingo Wingo authored
      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.
      4a61de0e
    • Andy Wingo Wingo's avatar
      check/gst/gstvalue.c (test_string): Add test for bug #165650. · 77d95482
      Andy Wingo Wingo authored
      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.
      77d95482
    • Andy Wingo Wingo's avatar
      gst/gstvalue.h: gst/gstvalue.c (gst_value_array_append_value)... · 0ae103af
      Andy Wingo Wingo authored
      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.
      0ae103af
    • Andy Wingo Wingo's avatar
      gsttaglist.h: Whoops, foreach function returns void. Also fix some constness. · ff1eca9d
      Andy Wingo Wingo authored
      Original commit message from CVS:
      2005-11-19  Andy Wingo  <wingo@pobox.com>
      
      * gsttaglist.h: Whoops, foreach function returns void. Also fix
      some constness.
      ff1eca9d
    • Andy Wingo Wingo's avatar
      gst/gsttaglist.*: Operates on a const · e89aaa7e
      Andy Wingo Wingo authored
      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.
      e89aaa7e
  3. 18 Nov, 2005 13 commits
    • Wim Taymans's avatar
      gst/gstclock.c: Doc and API fixes. · 3eb5b03d
      Wim Taymans authored
      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.
      3eb5b03d
    • Thomas Vander Stichele's avatar
      gst/gsterror.*: document · 8e3ad009
      Thomas Vander Stichele authored
      Original commit message from CVS:
      
      * gst/gsterror.c:
      * gst/gsterror.h:
      document
      8e3ad009
    • Thomas Vander Stichele's avatar
      document on requirements for moving plugins to good · 982ad26c
      Thomas Vander Stichele authored
      Original commit message from CVS:
      document on requirements for moving plugins to good
      982ad26c
    • Andy Wingo Wingo's avatar
      Add net pkgconfig files. · d83d55fe
      Andy Wingo Wingo authored
      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.
      d83d55fe
    • Stefan Kost's avatar
      gst/: docs fixes · dff771f1
      Stefan Kost authored
      Original commit message from CVS:
      * gst/gstcaps.c:
      * gst/gstghostpad.c:
      * gst/gsttrace.c:
      * gst/gstvalue.c:
      * gst/gstvalue.h:
      docs fixes
      dff771f1
    • Andy Wingo Wingo's avatar
      gst/net/gstnetclientclock.c: Turn off debugging. · a1ac7b66
      Andy Wingo Wingo authored
      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.
      a1ac7b66
    • Andy Wingo Wingo's avatar
      gst/net/gstnetclientclock.c (do_linear_regression): Use all integer... · fa09daa3
      Andy Wingo Wingo authored
      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.
      fa09daa3
    • Edward Hervey's avatar
      gst/base/gstbasesink.c: Also reset the ->current_* values in READY->PAUSED · d3270219
      Edward Hervey authored
      Original commit message from CVS:
      * gst/base/gstbasesink.c: (gst_base_sink_change_state):
      Also reset the ->current_* values in READY->PAUSED
      d3270219
    • Andy Wingo Wingo's avatar
      gst/net/gstnetclientclock.c (gst_net_client_clock_thread): Whoops, check the... · 24fc2081
      Andy Wingo Wingo authored
      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.
      24fc2081
    • Wim Taymans's avatar
      gst/base/gstbasesink.c: For the current position in stream time, we need to... · d72c6e95
      Wim Taymans authored
      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.
      d72c6e95
    • Andy Wingo Wingo's avatar
      gst/net/gstnetclientclock.c (gst_net_client_clock_class_init): Port goes all the way to MAXUINT16. · d8b22735
      Andy Wingo Wingo authored
      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.
      d8b22735
    • Wim Taymans's avatar
      gst/gstbin.*: Removing a clock provider from a bin, triggers a clock lost... · 02253f58
      Wim Taymans authored
      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.
      02253f58
    • Andy Wingo Wingo's avatar
      gst/net/gstnetclientclock.c (gst_net_client_clock_new): Adjust the clock... · 9188f69f
      Andy Wingo Wingo authored
      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.
      9188f69f
  4. 17 Nov, 2005 9 commits
    • Wim Taymans's avatar
      gst/net/gstnetclientclock.c: Free remote and local time arrays. · 48d140df
      Wim Taymans authored
      Original commit message from CVS:
      * gst/net/gstnetclientclock.c: (gst_net_client_clock_finalize):
      Free remote and local time arrays.
      48d140df
    • Wim Taymans's avatar
      gst/net/gstnetclientclock.c: Fix compilation, uninitialized vars and a forgotten continue. · 363f1bfd
      Wim Taymans authored
      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.
      363f1bfd
    • Andy Wingo Wingo's avatar
      check/: Add a most minimal test for the net client clock. More to come later. · d56b83f6
      Andy Wingo Wingo authored
      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.
      d56b83f6
    • Wim Taymans's avatar
      gst/gstbin.c: And unref the child too.. · 40e4311d
      Wim Taymans authored
      Original commit message from CVS:
      * gst/gstbin.c: (gst_bin_provide_clock_func),
      (gst_bin_sort_iterator_new):
      And unref the child too..
      40e4311d
    • Wim Taymans's avatar
      gst/gstbin.c: Refactor the sort iterator so it can be used while holding the · a1aa83c7
      Wim Taymans authored
      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.
      a1aa83c7
    • Michael Smith's avatar
      gst/gstclock.*: Anonymous structs are a gcc (and some other compilers)... · 3f80a0d3
      Michael Smith authored
      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.
      3f80a0d3
    • Andy Wingo Wingo's avatar
      gst/gstclock.h (GstClock): Add rate and offset properties, preserving ABI... · c557e030
      Andy Wingo Wingo authored
      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.
      c557e030
    • Thomas Vander Stichele's avatar
      remove completely outdated random docs · 5a303611
      Thomas Vander Stichele authored
      Original commit message from CVS:
      remove completely outdated random docs
      5a303611
    • Tim-Philipp Müller's avatar
      gst/gstmessage.c: Assertion should check for CLOCK_LOST, not NEW_CLOCK (#321648). · 3278ca54
      Tim-Philipp Müller authored
      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).
      3278ca54