1. 27 Aug, 2018 2 commits
  2. 24 Nov, 2017 1 commit
  3. 20 Oct, 2017 1 commit
    • Stefan Sauer's avatar
      segment: update the tests · 9f2d7d23
      Stefan Sauer authored
      Boy scout rule. Make is a little less painful to debug the tests by using
      fail_unless_equals_{uint64,int64,float} where appropriate. Ideally the large
      tests would be splitted to avoid guessing data dependencies.
      9f2d7d23
  4. 31 Jan, 2017 1 commit
  5. 23 Oct, 2015 1 commit
  6. 20 Oct, 2015 1 commit
    • Vivia Nikolaidou's avatar
      segment: Correct stream_time calc for negative applied rate · 45f0f354
      Vivia Nikolaidou authored
      Updated gst_segment_position_from_stream_time and gst_segment_to_stream_time to reflect correct calculations for the case when the applied rate is negative.
      
      Pasting from design docs:
      
      ===============================
      Stream time is calculated using the buffer times and the preceding SEGMENT
      event as follows:
      
          stream_time = (B.timestamp - S.start) * ABS (S.applied_rate) + S.time
      
      For negative rates, B.timestamp will go backwards from S.stop to S.start,
      making the stream time go backwards.
      ===============================
      
      Therefore, the calculation for applied_rate < 0 should be:
      
          stream_time = (S.stop - B.timestamp) * ABS (S.applied_rate) + S.time
      
      and the reverse:
      
          B.timestamp = S.stop - (stream_time - S.time) / ABS (S.applied_rate)
      
      https://bugzilla.gnome.org/show_bug.cgi?id=756810
      45f0f354
  7. 14 Oct, 2015 1 commit
  8. 25 Sep, 2015 2 commits
  9. 20 Mar, 2015 1 commit
  10. 19 Mar, 2015 1 commit
  11. 18 Mar, 2015 2 commits
  12. 08 Jan, 2014 2 commits
  13. 07 Dec, 2013 1 commit
  14. 03 Nov, 2012 1 commit
  15. 27 Jul, 2012 3 commits
  16. 20 Feb, 2012 1 commit
  17. 28 Oct, 2011 1 commit
  18. 17 May, 2011 1 commit
    • Wim Taymans's avatar
      tests: fix tests · 7b8b93ad
      Wim Taymans authored
      Remove the tests that handle incompatible formats, we don't want that anymore.
      7b8b93ad
  19. 16 May, 2011 1 commit
    • Wim Taymans's avatar
      Rework GstSegment handling · bdbc0693
      Wim Taymans authored
      Improve GstSegment, rename some fields. The idea is to have the GstSegment
      structure represent the timing structure of the buffers as they are generated by
      the source or demuxer element.
      gst_segment_set_seek() -> gst_segment_do_seek()
      Rename the NEWSEGMENT event to SEGMENT.
      Make parsing of the SEGMENT event into a GstSegment structure.
      Pass a GstSegment structure when making a new SEGMENT event. This allows us to
      pass the timing info directly to the next element. No accumulation is needed in
      the receiving element, all the info is inside the element.
      Remove gst_segment_set_newsegment(): This function as used to accumulate
      segments received from upstream, which is now not needed anymore because the
      segment event contains the complete timing information.
      bdbc0693
  20. 09 May, 2011 1 commit
  21. 11 Aug, 2009 2 commits
  22. 04 Jun, 2009 1 commit
  23. 03 Jun, 2009 1 commit
    • Wim Taymans's avatar
      segment: add method for converting to position · 92984a11
      Wim Taymans authored
      Add gst_segment_to_position() that converts a running_time to a position in the
      segment. A faulty variant of this function is currently used in inputselector
      but we'll need it for frame stepping too.
      
      API: GstSegment::gst_segment_to_position()
      92984a11
  24. 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
  25. 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
  26. 29 Feb, 2008 1 commit
    • Sebastian Dröge's avatar
      And correct even more valid sparse warnings. · 58cc2ede
      Sebastian Dröge authored
      Original commit message from CVS:
      * gst/gstelementfactory.h:
      * tests/check/elements/fakesink.c:
      * tests/check/elements/fakesrc.c: (setup_fakesrc):
      * tests/check/elements/fdsrc.c: (setup_fdsrc):
      * tests/check/elements/filesink.c: (setup_filesink):
      * tests/check/elements/filesrc.c: (setup_filesrc):
      * tests/check/elements/identity.c: (setup_identity):
      * tests/check/elements/tee.c:
      * tests/check/generic/sinks.c:
      * tests/check/generic/states.c: (setup), (teardown):
      * tests/check/gst/gst.c:
      * tests/check/gst/gstabi.c:
      * tests/check/gst/gstbin.c:
      * tests/check/gst/gstbus.c: (pull_messages):
      * tests/check/gst/gstcaps.c:
      * tests/check/gst/gstelement.c:
      * tests/check/gst/gstevent.c:
      * tests/check/gst/gstghostpad.c:
      * tests/check/gst/gstiterator.c:
      * tests/check/gst/gstmessage.c:
      * tests/check/gst/gstminiobject.c: (my_foo_init):
      * tests/check/gst/gstobject.c: (thread_name_object),
      (gst_object_suite):
      * tests/check/gst/gstpad.c:
      * tests/check/gst/gstplugin.c:
      * tests/check/gst/gstpoll.c:
      * tests/check/gst/gstquery.c:
      * tests/check/gst/gstsegment.c:
      * tests/check/gst/gststructure.c:
      * tests/check/gst/gstsystemclock.c:
      * tests/check/gst/gsttask.c:
      * tests/check/gst/gstutils.c:
      * tests/check/gst/gstvalue.c:
      * tests/check/gst/struct_hppa.h:
      * tests/check/gst/struct_i386.h:
      * tests/check/gst/struct_ppc32.h:
      * tests/check/gst/struct_ppc64.h:
      * tests/check/gst/struct_x86_64.h:
      * tests/check/libs/adapter.c: (create_and_fill_adapter):
      * tests/check/libs/basesrc.c:
      * tests/check/libs/controller.c: (GST_START_TEST):
      * tests/check/libs/gdp.c:
      * tests/check/libs/gstnetclientclock.c:
      * tests/check/libs/gstnettimeprovider.c:
      * tests/check/libs/libsabi.c:
      * tests/check/libs/struct_hppa.h:
      * tests/check/libs/struct_i386.h:
      * tests/check/libs/struct_ppc32.h:
      * tests/check/libs/struct_ppc64.h:
      * tests/check/libs/struct_x86_64.h:
      * tests/check/pipelines/cleanup.c:
      * tests/check/pipelines/simple-launch-lines.c:
      * tests/check/pipelines/stress.c:
      And correct even more valid sparse warnings.
      * win32/common/libgstreamer.def:
      Add gst_poll_fd_init to the list of symbols.
      58cc2ede
  27. 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
  28. 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
  29. 13 Feb, 2007 1 commit
  30. 19 Dec, 2006 1 commit
  31. 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
  32. 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