1. 03 Jan, 2019 2 commits
  2. 17 Oct, 2018 1 commit
  3. 16 Oct, 2018 1 commit
  4. 16 Jul, 2018 1 commit
  5. 15 Feb, 2018 1 commit
    • Tim-Philipp Müller's avatar
      tests: pipeline: try to make test_pipeline_reset_start_time more reliable · f6b1533e
      Tim-Philipp Müller authored
      Occasionally this test would fail, especially if the system is under load,
      because the position query would pick up the last position from the
      last buffer timestamp which has a lower timestamp than what we're
      looking for. The sleep is long enough, however. It's unclear to me why
      exactly this happens but there seems to be some kind of scheduling
      issue going on as the streaming thread floods the sink with buffers.
      
      Let's throttle the fakesrc to 100 buffers per second and make the sink
      sync to the clock to restore some sanity. It should be totally sufficient
      to test what we want to test, and seems to make things reliable here.
      f6b1533e
  6. 28 Nov, 2016 1 commit
  7. 29 Feb, 2016 1 commit
  8. 25 Feb, 2016 1 commit
  9. 21 Jul, 2014 1 commit
  10. 03 Nov, 2012 1 commit
  11. 12 Sep, 2012 1 commit
  12. 12 Aug, 2012 2 commits
  13. 09 Jul, 2012 1 commit
    • Tim-Philipp Müller's avatar
      bus, clock: make sure these never have a floating ref · c0c79188
      Tim-Philipp Müller authored
      Clear the initial floating ref in the init function for
      busses and clocks. These objects can be set on multiple
      elements, so there's no clear parent-child relationship
      here. Ideally we'd just not make them derive from
      GInitiallyUnowned at all, but since we want to keep
      using GstObject features for debugging, we'll just do
      it like this.
      
      This should also fix some problems with bindings, which
      seem to get confused when they get floating refs from
      non-constructor functions (or functions annotated to
      have a 'transfer full' return type). This works now:
      
      from gi.repository import GObject, Gst
      
      GObject.threads_init()
      Gst.init(None)
      
      pipeline=Gst.Pipeline()
      bus = pipeline.get_bus()
      pipeline.set_state(Gst.State.NULL)
      del pipeline;
      
      https://bugzilla.gnome.org/show_bug.cgi?id=679286
      https://bugzilla.gnome.org/show_bug.cgi?id=657202
      c0c79188
  14. 01 Nov, 2011 1 commit
    • Tim-Philipp Müller's avatar
      pad: rename GstProbeType and GstProbeReturn to GstPadProbe{Type,Return} · bffc9207
      Tim-Philipp Müller authored
      Better now than later in the cycle. These might come in handy:
      
      sed -i -e 's/GstProbeReturn/GstPadProbeReturn/g'   `git grep GstProbeReturn  | sed -e 's/:.*//' | sort -u`
      sed -i -e 's/GST_PROBE_/GST_PAD_PROBE_/g'          `git grep GST_PROBE_      | sed -e 's/:.*//' | sort -u`
      sed -i -e 's/GstProbeType/GstPadProbeType/g'       `git grep GstProbeType    | sed -e 's/:.*//' | sort -u`
      bffc9207
  15. 01 Jun, 2011 2 commits
  16. 21 Apr, 2011 1 commit
  17. 29 May, 2009 1 commit
  18. 05 Feb, 2009 1 commit
  19. 27 May, 2008 2 commits
  20. 21 May, 2008 1 commit
    • Wim Taymans's avatar
      Don't use gst_element_get_pad(). · cc833490
      Wim Taymans authored
      Original commit message from CVS:
      * gst/gstpad.c: (gst_pad_load_and_link):
      * gst/gstutils.c: (gst_element_link_pads),
      (gst_element_unlink_pads):
      * libs/gst/check/gstcheck.c: (gst_check_setup_src_pad),
      (gst_check_teardown_src_pad), (gst_check_setup_sink_pad),
      (gst_check_teardown_sink_pad),
      (gst_check_element_push_buffer_list):
      * tests/check/elements/fakesink.c: (GST_START_TEST):
      * tests/check/elements/filesink.c:
      * tests/check/elements/filesrc.c: (GST_START_TEST):
      * tests/check/elements/multiqueue.c: (setup_multiqueue),
      (mq_sinkpad_to_srcpad):
      * tests/check/elements/tee.c: (GST_START_TEST):
      * tests/check/generic/sinks.c: (GST_START_TEST):
      * tests/check/gst/gstbin.c: (GST_START_TEST):
      * tests/check/gst/gstevent.c: (GST_START_TEST):
      * tests/check/gst/gstghostpad.c: (GST_START_TEST):
      * tests/check/gst/gstpipeline.c: (GST_START_TEST):
      * tests/check/gst/gstquery.c: (GST_START_TEST):
      * tests/check/gst/gstutils.c: (GST_START_TEST):
      * tests/check/libs/basesrc.c: (GST_START_TEST):
      * tests/check/pipelines/parse-launch.c: (run_delayed_test),
      (gst_parse_test_element_change_state):
      Don't use gst_element_get_pad().
      cc833490
  21. 25 Apr, 2008 1 commit
    • Tim-Philipp Müller's avatar
      Ref some more classes in gst_init() to work around thread-safety issues in... · e46f846c
      Tim-Philipp Müller authored
      Ref some more classes in gst_init() to work around thread-safety issues in pre-2.16 GLibs, and add basic unit test.
      
      Original commit message from CVS:
      * gst/gst.c: (init_post), (gst_deinit):
      * tests/check/gst/gstpipeline.c: (GST_START_TEST), (pipeline_thread),
      (test_concurrent_create), (gst_pipeline_suite):
      Ref some more classes in gst_init() to work around thread-safety
      issues in pre-2.16 GLibs, and add basic unit test.
      e46f846c
  22. 29 Feb, 2008 1 commit
    • Sebastian Dröge's avatar
      Correct all relevant warnings found by the sparse semantic code analyzer. This... · b997b054
      Sebastian Dröge authored
      Correct all relevant warnings found by the sparse semantic code analyzer. This include marking several symbols static...
      
      Original commit message from CVS:
      * gst/gstconfig.h.in:
      * libs/gst/base/gstcollectpads.c: (gst_collect_pads_read_buffer):
      * libs/gst/check/gstcheck.c: (gst_check_log_message_func),
      (gst_check_log_critical_func), (gst_check_drop_buffers),
      (gst_check_element_push_buffer_list):
      * libs/gst/controller/gstcontroller.c: (gst_controller_get),
      (gst_controller_get_type):
      * libs/gst/controller/gsthelper.c: (gst_object_control_properties),
      (gst_object_get_controller), (gst_object_get_control_source):
      * libs/gst/controller/gstinterpolationcontrolsource.c:
      (gst_interpolation_control_source_new):
      * libs/gst/controller/gstlfocontrolsource.c:
      (gst_lfo_control_source_new):
      * libs/gst/dataprotocol/dataprotocol.c:
      (gst_dp_event_from_packet_0_2):
      * plugins/elements/gstfdsrc.c:
      * plugins/elements/gstmultiqueue.c:
      * plugins/elements/gsttee.c:
      * plugins/elements/gsttypefindelement.c:
      * plugins/indexers/gstfileindex.c: (_file_index_id_save_xml),
      (gst_file_index_add_association):
      * plugins/indexers/gstmemindex.c:
      * tests/benchmarks/gstpollstress.c: (mess_some_more):
      * tests/check/elements/queue.c: (setup_queue):
      * tests/check/gst/gstpipeline.c:
      * tests/check/libs/collectpads.c: (setup), (teardown),
      (gst_collect_pads_suite):
      * tests/examples/adapter/adapter_test.c:
      * tests/examples/metadata/read-metadata.c: (make_pipeline):
      * tests/examples/xml/createxml.c:
      * tests/examples/xml/runxml.c:
      * tools/gst-inspect.c:
      * tools/gst-run.c:
      Correct all relevant warnings found by the sparse semantic code
      analyzer. This include marking several symbols static, using
      NULL instead of 0 for pointers, not using variable sized arrays
      on the stack, moving variable declarations to the beginning of
      a block and using "foo (void)" instead of "foo ()" for declarations.
      b997b054
  23. 01 Jul, 2006 1 commit
    • Thomas Vander Stichele's avatar
      tests/check/: use the new macro · 64086e29
      Thomas Vander Stichele authored
      Original commit message from CVS:
      * tests/check/elements/fakesink.c:
      * tests/check/elements/fakesrc.c:
      * tests/check/elements/fdsrc.c:
      * tests/check/elements/identity.c:
      * tests/check/generic/sinks.c: (gst_sinks_suite):
      * tests/check/generic/states.c:
      * tests/check/gst/gst.c:
      * tests/check/gst/gstabi.c:
      * tests/check/gst/gstbin.c:
      * tests/check/gst/gstbuffer.c: (gst_buffer_suite):
      * tests/check/gst/gstbus.c: (gst_bus_suite):
      * tests/check/gst/gstcaps.c: (GST_START_TEST):
      * tests/check/gst/gstelement.c:
      * tests/check/gst/gstevent.c: (gst_event_suite):
      * tests/check/gst/gstghostpad.c:
      * tests/check/gst/gstiterator.c: (gst_iterator_suite):
      * tests/check/gst/gstmessage.c: (gst_message_suite):
      * tests/check/gst/gstminiobject.c:
      * tests/check/gst/gstobject.c:
      * tests/check/gst/gstpad.c:
      * tests/check/gst/gstpipeline.c:
      * tests/check/gst/gstplugin.c:
      * tests/check/gst/gstquery.c: (gst_query_suite):
      * tests/check/gst/gstsegment.c: (gst_segment_suite):
      * tests/check/gst/gststructure.c:
      * tests/check/gst/gstsystemclock.c:
      * tests/check/gst/gsttag.c:
      * tests/check/gst/gsttask.c: (gst_task_suite):
      * tests/check/gst/gstutils.c:
      * tests/check/gst/gstvalue.c:
      * tests/check/libs/adapter.c:
      * tests/check/libs/basesrc.c:
      * tests/check/libs/collectpads.c:
      * tests/check/libs/controller.c:
      * tests/check/libs/gdp.c: (gst_dp_suite):
      * tests/check/libs/gstnetclientclock.c:
      * tests/check/libs/gstnettimeprovider.c:
      * tests/check/libs/libsabi.c: (libsabi_suite):
      * tests/check/libs/typefindhelper.c:
      * tests/check/pipelines/cleanup.c:
      * tests/check/pipelines/parse-launch.c:
      * tests/check/pipelines/simple-launch-lines.c:
      * tests/check/pipelines/stress.c: (stress_suite):
      use the new macro
      64086e29
  24. 28 Nov, 2005 1 commit
  25. 27 Nov, 2005 1 commit
  26. 15 Nov, 2005 4 commits
    • Andy Wingo Wingo's avatar
      gst/gstelement.c (gst_element_set_base_time): Add debugging. · 2124c0fd
      Andy Wingo Wingo authored
      Original commit message from CVS:
      2005-11-15  Andy Wingo  <wingo@pobox.com>
      
      * gst/gstelement.c (gst_element_set_base_time): Add debugging.
      
      * gst/gstpipeline.c (gst_pipeline_set_new_stream_time): Document
      using GST_CLOCK_TIME_NONE to disable base time management.
      (do_pipeline_seek, gst_pipeline_change_state): Don't reset stream
      time if it was NONE before.
      (gst_pipeline_change_state): Only munge the base time if
      stream_time != GST_CLOCK_TIME_NONE.
      
      * check/gst/gstpipeline.c (test_base_time): Punt around the
      problem of the probe not being called, because that's not the
      issue I'm looking at. Add a check that setting stream_time to NONE
      disables base time management.
      2124c0fd
    • Andy Wingo Wingo's avatar
      check/gst/gstpipeline.c (test_base_time): Punt around the problem of the probe... · 87e4af77
      Andy Wingo Wingo authored
      check/gst/gstpipeline.c (test_base_time): Punt around the problem of the probe not being called, because that's not t...
      
      Original commit message from CVS:
      2005-11-15  Andy Wingo  <wingo@pobox.com>
      
      * check/gst/gstpipeline.c (test_base_time): Punt around the
      problem of the probe not being called, because that's not the
      issue I'm looking at...
      87e4af77
    • Andy Wingo Wingo's avatar
      check/gst/gstpipeline.c (test_base_time): Add check that the base time and... · a594b628
      Andy Wingo Wingo authored
      check/gst/gstpipeline.c (test_base_time): Add check that the base time and stream time are reset correctly.
      
      Original commit message from CVS:
      2005-11-15  Andy Wingo  <wingo@pobox.com>
      
      * check/gst/gstpipeline.c (test_base_time): Add check that the
      base time and stream time are reset correctly.
      a594b628
    • Andy Wingo Wingo's avatar
      check/gst/gstpipeline.c (test_base_time): New test for buffer timestamps with live capture. · 58a5b2f5
      Andy Wingo Wingo authored
      Original commit message from CVS:
      2005-11-15  Andy Wingo  <wingo@pobox.com>
      
      * check/gst/gstpipeline.c (test_base_time): New test for buffer
      timestamps with live capture.
      
      * gst/elements/gstfakesrc.c (gst_fake_src_create): If the datarate
      is 0 but we are a live source, timestamp the buffers using the
      element's clock.
      58a5b2f5
  27. 18 Oct, 2005 2 commits
    • Wim Taymans's avatar
      Seriously, this is better than a previous commit as we only need to notify the... · 0176d5a0
      Wim Taymans authored
      Seriously, this is better than a previous commit as we only need to notify the fact that an element changed state in ...
      
      Original commit message from CVS:
      * check/gst/gstbin.c: (GST_START_TEST):
      * check/gst/gstmessage.c: (GST_START_TEST):
      * check/gst/gstpipeline.c: (GST_START_TEST), (message_received):
      * gst/gstbin.c: (gst_bin_class_init), (gst_bin_recalc_func),
      (bin_bus_handler):
      * gst/gstelement.c: (gst_element_abort_state),
      (gst_element_commit_state), (gst_element_lost_state):
      * gst/gstmessage.c: (gst_message_new_state_changed),
      (gst_message_new_state_dirty), (gst_message_new_segment_start),
      (gst_message_new_segment_done), (gst_message_new_duration),
      (gst_message_parse_state_changed),
      (gst_message_parse_segment_start),
      (gst_message_parse_segment_done), (gst_message_parse_duration):
      * gst/gstmessage.h:
      * tools/gst-launch.c: (event_loop):
      Seriously, this is better than a previous commit as we only need
      to notify the fact that an element changed state in a streaming
      thread, marking the state of the parents dirty, hence the
      STATE_DIRTY message instead of abusing a boolean in a STATE_CHANGE
      message.
      0176d5a0
    • Wim Taymans's avatar
      Make messages future proof. state-change gets a flag if it was a message... · 20aff65b
      Wim Taymans authored
      Make messages future proof. state-change gets a flag if it was a message comming from the streaming thread.
      
      Original commit message from CVS:
      * check/gst/gstbin.c: (GST_START_TEST):
      * check/gst/gstmessage.c: (GST_START_TEST):
      * check/gst/gstpipeline.c: (GST_START_TEST), (message_received):
      * gst/gstbin.c: (bin_bus_handler):
      * gst/gstelement.c: (gst_element_commit_state),
      (gst_element_lost_state):
      * gst/gstmessage.c: (gst_message_new_state_changed),
      (gst_message_new_segment_start), (gst_message_new_segment_done),
      (gst_message_new_duration), (gst_message_parse_state_changed),
      (gst_message_parse_segment_start),
      (gst_message_parse_segment_done), (gst_message_parse_duration):
      * gst/gstmessage.h:
      * tools/gst-launch.c: (event_loop):
      Make messages future proof.
      state-change gets a flag if it was a message comming from the
      streaming thread.
      segment-start/stop can also be specified in other formats.
      A message to notify an app that a pipeline changed playback
      duration.
      Also fix a GstMessage leak in -launch
      20aff65b
  28. 12 Oct, 2005 1 commit
    • Wim Taymans's avatar
      Use GstClockTime in _get_state() instead of GTimeVal. · 6d0be743
      Wim Taymans authored
      Original commit message from CVS:
      * check/gst/gstbin.c: (GST_START_TEST):
      * check/gst/gstelement.c: (GST_START_TEST):
      * check/gst/gstevent.c: (GST_START_TEST), (test_event):
      * check/gst/gstghostpad.c: (GST_START_TEST):
      * check/gst/gstpipeline.c: (GST_START_TEST):
      * check/pipelines/simple_launch_lines.c: (run_pipeline):
      * check/states/sinks.c: (GST_START_TEST):
      * gst/elements/gsttypefindelement.c: (stop_typefinding):
      * gst/gstbin.c: (gst_bin_provide_clock_func), (gst_bin_add_func),
      (gst_bin_remove_func), (gst_bin_get_state_func),
      (gst_bin_recalc_state), (gst_bin_change_state_func),
      (bin_bus_handler):
      * gst/gstelement.c: (gst_element_get_state_func),
      (gst_element_get_state), (gst_element_abort_state),
      (gst_element_commit_state), (gst_element_set_state),
      (gst_element_change_state), (gst_element_change_state_func):
      * gst/gstelement.h:
      * gst/gstpipeline.c: (gst_pipeline_class_init), (do_pipeline_seek),
      (gst_pipeline_provide_clock_func):
      * gst/gstutils.c: (gst_element_link_pads_filtered):
      * tools/gst-launch.c: (main):
      * tools/gst-typefind.c: (main):
      Use GstClockTime in _get_state() instead of GTimeVal.
      Remove old code in gstutils.c
      6d0be743
  29. 10 Oct, 2005 1 commit
    • Wim Taymans's avatar
      check/: Check fixes, use API as stated in design docs, remove hacks. · 2153c459
      Wim Taymans authored
      Original commit message from CVS:
      * check/Makefile.am:
      * check/generic/states.c: (GST_START_TEST):
      * check/gst/gstbin.c: (GST_START_TEST):
      * check/gst/gstpipeline.c: (GST_START_TEST), (gst_pipeline_suite):
      * check/states/sinks.c: (GST_START_TEST):
      * check/states/sinks2.c: (GST_START_TEST), (gst_object_suite),
      (main):
      Check fixes, use API as stated in design docs, remove hacks.
      
      * gst/base/gstbasesink.c: (gst_base_sink_handle_object),
      (gst_base_sink_change_state):
      Catch stopping our task while we're shutting down.
      
      * gst/gstbin.c: (gst_bin_init), (gst_bin_add_func),
      (gst_bin_remove_func), (gst_bin_get_state_func),
      (gst_bin_recalc_state), (gst_bin_change_state_func),
      (bin_bus_handler):
      * gst/gstbin.h:
      * gst/gstelement.c: (gst_element_init),
      (gst_element_get_state_func), (gst_element_abort_state),
      (gst_element_commit_state), (gst_element_lost_state),
      (gst_element_set_state), (gst_element_change_state),
      (gst_element_change_state_func):
      * gst/gstelement.h:
      New state change algorithm (see #318116)
      
      * gst/gstpipeline.c: (gst_pipeline_class_init),
      (gst_pipeline_init), (gst_pipeline_set_property),
      (gst_pipeline_get_property), (do_pipeline_seek),
      (gst_pipeline_change_state), (gst_pipeline_provide_clock_func):
      * gst/gstpipeline.h:
      Remove crude state change hacks.
      
      * gst/gstutils.h:
      Remove crude hacks.
      
      * tools/gst-launch.c: (main):
      Fixes for state change. Needs some more work to fully use the
      new stuff.
      2153c459
  30. 08 Oct, 2005 1 commit
    • Wim Taymans's avatar
      Added extra field to STATE_CHANGE message with the pending state, which will... · ce081d63
      Wim Taymans authored
      Added extra field to STATE_CHANGE message with the pending state, which will be different from the new state soon.
      
      Original commit message from CVS:
      * check/gst/gstbin.c: (GST_START_TEST):
      * check/gst/gstmessage.c: (GST_START_TEST):
      * check/gst/gstpipeline.c: (GST_START_TEST), (message_received):
      * gst/gstelement.c: (gst_element_commit_state),
      (gst_element_lost_state):
      * gst/gstmessage.c: (gst_message_new_state_changed),
      (gst_message_parse_state_changed):
      * gst/gstmessage.h:
      * tools/gst-launch.c: (event_loop):
      Added extra field to STATE_CHANGE message with the pending
      state, which will be different from the new state soon.
      ce081d63
  31. 29 Sep, 2005 2 commits