1. 03 Apr, 2009 1 commit
  2. 26 Mar, 2009 1 commit
  3. 23 Oct, 2008 1 commit
    • Wim Taymans's avatar
      gst/gstsegment.c: Set the last_stop to a more meaningful position when... · d2e5ffde
      Wim Taymans authored
      gst/gstsegment.c: Set the last_stop to a more meaningful position when configuring the segment. ie. the start/stop of...
      
      Original commit message from CVS:
      * gst/gstsegment.c: (gst_segment_set_newsegment_full):
      Set the last_stop to a more meaningful position when configuring the
      segment. ie. the start/stop of the segment or clipped against the
      updated segment boundaries.
      * tests/check/gst/gstsegment.c: (GST_START_TEST):
      Add some unit tests for the last_stop.
      d2e5ffde
  4. 01 Jul, 2008 1 commit
  5. 09 May, 2008 1 commit
    • Tim-Philipp Müller's avatar
      No, let's not use g_slice_{dup|copy} here, since they only exist since GLib... · 077450a4
      Tim-Philipp Müller authored
      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().
      077450a4
  6. 23 Apr, 2008 2 commits
  7. 09 Apr, 2008 1 commit
  8. 01 Apr, 2008 1 commit
    • Sebastian Dröge's avatar
      configure.ac: Require GLib 2.12. · 1e0128c4
      Sebastian Dröge authored
      Original commit message from CVS:
      * configure.ac:
      Require GLib 2.12.
      * gst/glib-compat-private.h:
      * gst/gstcaps.c: (gst_caps_new_empty), (_gst_caps_free):
      * gst/gstclock.c: (gst_clock_entry_new), (_gst_clock_id_free):
      Unconditionally use GSlice for allocation.
      * gst/gstpoll.c: (gst_poll_new), (gst_poll_free):
      * gst/gstsegment.c: (gst_segment_new), (gst_segment_free):
      * gst/gststructure.c: (gst_structure_id_empty_new_with_size),
      (gst_structure_free):
      Use GSlice for allocation.
      1e0128c4
  9. 29 Feb, 2008 1 commit
    • Wim Taymans's avatar
      gst/gstsegment.c: Improve some comment. · 4203512a
      Wim Taymans authored
      Original commit message from CVS:
      * gst/gstsegment.c: (gst_segment_set_seek),
      (gst_segment_to_stream_time):
      Improve some comment.
      Update variables where it makes more sense.
      4203512a
  10. 19 Dec, 2007 1 commit
    • Wim Taymans's avatar
      docs/design/part-synchronisation.txt: Small updates. · a332964e
      Wim Taymans authored
      Original commit message from CVS:
      * docs/design/part-synchronisation.txt:
      Small updates.
      * gst/gstsegment.c: (gst_segment_set_seek),
      (gst_segment_set_newsegment_full), (gst_segment_to_stream_time),
      (gst_segment_to_running_time):
      The seek format can be different from the segment format when the start
      and stop values are not to be updated, when we only do a rate change for
      example.
      * tests/check/gst/gstsegment.c: (GST_START_TEST),
      (gst_segment_suite):
      Add a testcase for the rate-only seeks, checking that the format is
      correctly ignored when start and stop are not updated.
      a332964e
  11. 09 Nov, 2007 1 commit
    • Wim Taymans's avatar
      gst/gstsegment.c: Also accumulate time correctly when doing reverse playback. Fixes #488201, · c28238d8
      Wim Taymans authored
      Original commit message from CVS:
      * gst/gstsegment.c: (gst_segment_set_newsegment_full),
      (gst_segment_to_stream_time), (gst_segment_to_running_time):
      Also accumulate time correctly when doing reverse playback. Fixes
      #488201,
      When converting to running and stream time, use default values for
      start/stop/time/accum when comparing different formats. Fixes #494245.
      * libs/gst/base/gstbasesink.c: (gst_base_sink_get_sync_times):
      Do running/stream time in TIME format.
      * tests/check/gst/gstsegment.c: (GST_START_TEST),
      (gst_segment_suite):
      2 new unit tests for segment accumulation.
      c28238d8
  12. 05 Jun, 2007 1 commit
    • Wim Taymans's avatar
      gst/gstobject.c: Fix signal signature. · fbceb950
      Wim Taymans authored
      Original commit message from CVS:
      * gst/gstobject.c: (gst_object_class_init):
      Fix signal signature.
      * gst/gstsegment.c:
      Add small clarification in the api docs.
      * plugins/elements/gstfilesrc.c: (gst_file_src_set_location):
      States are protected with object lock.
      fbceb950
  13. 17 May, 2007 1 commit
  14. 13 Feb, 2007 1 commit
    • Wim Taymans's avatar
      docs/design/part-seeking.txt: Some small update. · 5b6258fa
      Wim Taymans authored
      Original commit message from CVS:
      * docs/design/part-seeking.txt:
      Some small update.
      * gst/gstsegment.c: (gst_segment_set_seek):
      Revert old bogus change that should make seeking work again.
      5b6258fa
  15. 19 Dec, 2006 1 commit
  16. 20 Nov, 2006 1 commit
    • Wim Taymans's avatar
      gst/gstsegment.c: Fix boundary checking in to_running_time() and to_stream_time(). · f830f6f4
      Wim Taymans authored
      Original commit message from CVS:
      * gst/gstsegment.c: (gst_segment_set_seek),
      (gst_segment_set_newsegment_full), (gst_segment_to_stream_time),
      (gst_segment_to_running_time):
      Fix boundary checking in to_running_time() and to_stream_time().
      Fixes #377183.
      * tests/check/gst/gstsegment.c: (GST_START_TEST):
      stream and running time can now be calculated for the complete
      clipped segment.
      f830f6f4
  17. 18 Oct, 2006 2 commits
    • Wim Taymans's avatar
      gst/gstsegment.c: Relax arg checking again, -1 is allowed. · b1504c37
      Wim Taymans authored
      Original commit message from CVS:
      * gst/gstsegment.c: (gst_segment_set_last_stop),
      (gst_segment_set_seek), (gst_segment_set_newsegment_full):
      Relax arg checking again, -1 is allowed.
      b1504c37
    • Wim Taymans's avatar
      gst/gstsegment.c: _set_last_stop() must be with a value != -1 · fd6d33c3
      Wim Taymans authored
      Original commit message from CVS:
      * gst/gstsegment.c: (gst_segment_set_last_stop),
      (gst_segment_set_seek), (gst_segment_set_newsegment_full):
      _set_last_stop() must be with a value != -1
      A _TYPE_SET to -1 means seek to 0.
      Calc last_stop correctly for negative rates.
      Make sure we work with positive durations when updating a segment.
      fd6d33c3
  18. 13 Oct, 2006 1 commit
  19. 09 Oct, 2006 2 commits
    • Wim Taymans's avatar
      gst/gstevent.c: Rename some more @cur to @start to fix docs. · 0a53651b
      Wim Taymans authored
      Original commit message from CVS:
      * gst/gstevent.c: (gst_event_new_seek), (gst_event_parse_seek):
      Rename some more @cur to @start to fix docs.
      * gst/gstsegment.c: (gst_segment_set_seek):
      Fix typo.
      time and start must always stay in sync as defined in design doc.
      * gst/gsttaglist.c: (gst_tag_list_is_empty):
      Rename param to fix docs.
      * tests/check/gst/gstsegment.c: (GST_START_TEST):
      Check that start and time are in sync.
      * tests/check/pipelines/parse-launch.c:
      (gst_parse_test_element_change_state):
      Activate pad before adding to the element.
      0a53651b
    • Wim Taymans's avatar
      docs/design/part-qos.txt: Fix typo. · 89814eed
      Wim Taymans authored
      Original commit message from CVS:
      * docs/design/part-qos.txt:
      Fix typo.
      * gst/gstevent.c:
      * gst/gstevent.h:
      Update seek event docs regarding negative rates.
      Rename @cur to @start.
      * gst/gstsegment.c: (gst_segment_set_seek):
      * gst/gstsegment.h:
      Update set_seek docs regarding negative rates.
      Correctly update last_stop to @stop when dealing with negative
      rates.
      Rename @cur to @start.
      * tests/check/gst/gstpad.c: (GST_START_TEST):
      Activate pads before trying to use them.
      * tests/check/gst/gstsegment.c: (GST_START_TEST),
      (gst_segment_suite):
      Add simple check for segments and negative rates.
      89814eed
  20. 15 Sep, 2006 1 commit
    • Wim Taymans's avatar
      gst/: Small cleanups in docs and code. · bb634398
      Wim Taymans authored
      Original commit message from CVS:
      * gst/gstobject.c: (gst_object_set_parent):
      * gst/gstpipeline.c: (do_pipeline_seek):
      Small cleanups in docs and code.
      * gst/gstsegment.c: (gst_segment_clip):
      * tests/check/gst/gstsegment.c: (GST_START_TEST):
      if stop == start and start is in the segment, no clipping should be
      done. Also add a test for this.
      bb634398
  21. 12 Jun, 2006 1 commit
    • Wim Taymans's avatar
      gst/gstsegment.c: Use G_UNLIKELY to help the compiler a bit. · 237c3cd5
      Wim Taymans authored
      Original commit message from CVS:
      * gst/gstsegment.c: (gst_segment_set_duration),
      (gst_segment_set_last_stop), (gst_segment_set_seek),
      (gst_segment_set_newsegment_full), (gst_segment_to_stream_time),
      (gst_segment_to_running_time), (gst_segment_clip):
      Use G_UNLIKELY to help the compiler a bit.
      237c3cd5
  22. 05 Jun, 2006 1 commit
  23. 08 May, 2006 1 commit
    • Wim Taymans's avatar
      docs/design/part-overview.txt: Make upsteam/downstream concepts more clear. · b9dbb551
      Wim Taymans authored
      Original commit message from CVS:
      * docs/design/part-overview.txt:
      Make upsteam/downstream concepts more clear.
      Give an example of serialized/non-serialized events.
      * docs/design/part-events.txt:
      * docs/design/part-streams.txt:
      Mention applied_rate.
      * docs/design/part-trickmodes.txt:
      Mention applied rate, flesh out some more use cases.
      * gst/gstevent.c: (gst_event_new_new_segment),
      (gst_event_parse_new_segment), (gst_event_new_new_segment_full),
      (gst_event_parse_new_segment_full), (gst_event_new_tag),
      (gst_event_parse_tag), (gst_event_new_buffer_size),
      (gst_event_parse_buffer_size), (gst_event_new_qos),
      (gst_event_parse_qos), (gst_event_parse_seek),
      (gst_event_new_navigation):
      * gst/gstevent.h:
      Add applied_rate field to NEWSEGMENT event.
      API: gst_event_new_new_segment_full()
      API: gst_event_parse_new_segment_full()
      * gst/gstsegment.c: (gst_segment_init), (gst_segment_set_seek),
      (gst_segment_set_newsegment), (gst_segment_set_newsegment_full),
      (gst_segment_to_stream_time), (gst_segment_to_running_time):
      * gst/gstsegment.h:
      Add applied_rate to GstSegment structure.
      Make calculation of stream_time and running_time more correct
      wrt rate/applied_rate.
      Add some more docs.
      API: GstSegment::applied_rate field
      API: gst_segment_set_newsegment_full();
      * libs/gst/base/gstbasesink.c: (gst_base_sink_configure_segment),
      (gst_base_sink_get_sync_times), (gst_base_sink_get_position):
      * libs/gst/base/gstbasetransform.c:
      (gst_base_transform_sink_eventfunc),
      (gst_base_transform_handle_buffer):
      Parse and use applied_rate in the GstSegment field.
      * tests/check/gst/gstevent.c: (GST_START_TEST):
      Add check for applied_rate field.
      * tests/check/gst/gstsegment.c: (GST_START_TEST),
      (gstsegments_suite):
      Add more checks for various GstSegment operations.
      b9dbb551
  24. 10 Apr, 2006 1 commit
    • Wim Taymans's avatar
      gst/gstsegment.c: Added some more docs. · c2d86926
      Wim Taymans authored
      Original commit message from CVS:
      * gst/gstsegment.c:
      Added some more docs.
      * libs/gst/base/gstbasesink.c: (gst_base_sink_perform_qos),
      (gst_base_sink_reset_qos):
      Calculate more accurate rate values.
      c2d86926
  25. 14 Mar, 2006 1 commit
  26. 13 Mar, 2006 1 commit
    • Wim Taymans's avatar
      Documentation updates. · 429ebfff
      Wim Taymans authored
      Original commit message from CVS:
      * docs/gst/gstreamer-sections.txt:
      * gst/gstbin.c: (bin_bus_handler), (gst_bin_handle_message_func):
      * gst/gstbin.h:
      * gst/gstbus.c: (gst_bus_class_init):
      * gst/gstbus.h:
      * gst/gstclock.c:
      * gst/gstelement.c: (gst_element_set_locked_state):
      * gst/gstsegment.c:
      Documentation updates.
      * gst/gstpipeline.c: (gst_pipeline_get_type),
      (gst_pipeline_class_init), (gst_pipeline_init),
      (gst_pipeline_dispose), (gst_pipeline_set_property),
      (gst_pipeline_get_property), (do_pipeline_seek),
      (gst_pipeline_send_event), (gst_pipeline_change_state),
      (gst_pipeline_provide_clock_func), (gst_pipeline_set_delay),
      (gst_pipeline_get_delay):
      * gst/gstpipeline.h:
      Added methods for setting the delay.
      API: gst_pipeline_set_delay
      API: gst_pipeline_get_delay
      Add pipeline debug category
      Various cleanups.
      Updated docs.
      Don't reset stream time when seek failed.
      429ebfff
  27. 28 Feb, 2006 1 commit
    • Wim Taymans's avatar
      gst/gstbin.c: Help the compiler a bit with type registration. · a1939810
      Wim Taymans authored
      Original commit message from CVS:
      * gst/gstbin.c: (gst_bin_get_type), (gst_bin_handle_message_func):
      Help the compiler a bit with type registration.
      Use existing forward cod path instead of duplicating it when
      handling a message.
      
      * gst/gstbus.c: (gst_bus_get_type):
      * gst/gstcaps.c: (gst_caps_get_type), (gst_static_caps_get_type):
      * gst/gstchildproxy.c: (gst_child_proxy_get_type):
      * gst/gstclock.c: (gst_clock_get_type):
      * gst/gstelement.c: (gst_element_get_type),
      * gst/gstelementfactory.c: (gst_element_factory_get_type):
      * gst/gstindexfactory.c: (gst_index_factory_get_type):
      * gst/gstminiobject.c: (gst_mini_object_get_type):
      * gst/gstpad.c: (gst_pad_get_type):
      * gst/gstsegment.c: (gst_segment_get_type):
      * gst/gststructure.c: (gst_structure_get_type):
      * gst/gstsystemclock.c: (gst_system_clock_get_type):
      * gst/gsttask.c: (gst_task_get_type), (gst_task_join):
      * gst/gstvalue.c:
      Help compiler with type registration.
      
      * plugins/elements/gstqueue.c: (gst_queue_handle_sink_event):
      Small doc update.
      a1939810
  28. 02 Feb, 2006 1 commit
  29. 12 Jan, 2006 1 commit
  30. 12 Dec, 2005 1 commit
    • Wim Taymans's avatar
      gst/gstsegment.c: Added more documentation. · 8666c159
      Wim Taymans authored
      Original commit message from CVS:
      * gst/gstsegment.c: (gst_segment_init),
      (gst_segment_set_last_stop), (gst_segment_set_seek),
      (gst_segment_set_newsegment), (gst_segment_to_stream_time),
      (gst_segment_to_running_time):
      Added more documentation.
      Make sure the last_pos value is updated properly.
      Make sure to_stream_time and to_running_time don't
      operate on wrong values.
      
      * tests/check/gst/gstsegment.c: (GST_START_TEST):
      Update check.
      8666c159
  31. 29 Nov, 2005 1 commit
    • Edward Hervey's avatar
      gst/base/gstbasesink.c: Properly handle non GST_FORMAT_TIME segment · c4d1ffa5
      Edward Hervey authored
      Original commit message from CVS:
      * 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_change_state):
      Properly handle non GST_FORMAT_TIME segment
      * gst/elements/gstidentity.c: (gst_identity_transform_ip):
      Properly handle non GST_FORMAT_TIME segment
      * gst/gstsegment.c:
      This function is valid if the accumulator is 0 and the format
      is different from the requested format.
      c4d1ffa5
  32. 21 Nov, 2005 4 commits
    • Wim Taymans's avatar
      gst/gstsegment.*: Make binding friendly. · 5be62b88
      Wim Taymans authored
      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.
      5be62b88
    • Wim Taymans's avatar
      More segment updates, replace code in plugins with segment helper functions. · a35882df
      Wim Taymans authored
      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.
      a35882df
    • Andy Wingo Wingo's avatar
      gst/gstsegment.c (gst_segment_init): Initialize abs_rate. · 7f0bef04
      Andy Wingo Wingo authored
      Original commit message from CVS:
      2005-11-21  Andy Wingo  <wingo@pobox.com>
      
      * gst/gstsegment.c (gst_segment_init): Initialize abs_rate.
      7f0bef04
    • Wim Taymans's avatar
      More segment updates and more checks. · 29ea4a0b
      Wim Taymans authored
      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.
      29ea4a0b
  33. 20 Nov, 2005 1 commit
    • 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