1. 07 Jul, 2006 1 commit
    • Tim-Philipp Müller's avatar
      gst/gstbin.c: Can't use GPOINTER_TO_INT and GINT_TO_POINTER with GTypes. · 99f16655
      Tim-Philipp Müller authored
      Original commit message from CVS:
      * gst/gstbin.c: (compare_interface), (gst_bin_get_by_interface),
      (gst_bin_iterate_all_by_interface):
      Can't use GPOINTER_TO_INT and GINT_TO_POINTER with GTypes.
      GTypes are gulongs and thus the top 4 bytes might be cut
      off on some platforms when doing GPOINTER_TO_INT, leading
      to invalid GTypes and bad things happening.
      Also add a check to make sure the type passed in is really
      an interface type.
      99f16655
  2. 30 Jun, 2006 1 commit
    • Tim-Philipp Müller's avatar
      gst/: Fix deserialisation from XML. Set parent manually instead of using... · 565199ef
      Tim-Philipp Müller authored
      gst/: Fix deserialisation from XML. Set parent manually instead of using gst_bin_add(), since gst_bin_add() will unli...
      
      Original commit message from CVS:
      * gst/gstbin.c: (gst_bin_restore_thyself):
      * gst/gstxml.c: (gst_xml_make_element):
      Fix deserialisation from XML. Set parent manually
      instead of using gst_bin_add(), since gst_bin_add()
      will unlink all pads of the element being added.
      Fixes #341667.
      565199ef
  3. 14 Jun, 2006 1 commit
  4. 28 Apr, 2006 2 commits
    • Stefan Kost's avatar
      make GstElementDetails const · e90fcdbc
      Stefan Kost authored
      Original commit message from CVS:
      * gst/gstbin.c:
      * gst/gstpipeline.c:
      * plugins/elements/gstcapsfilter.c:
      * plugins/elements/gstfakesink.c:
      * plugins/elements/gstfakesrc.c:
      * plugins/elements/gstfdsink.c:
      * plugins/elements/gstfdsrc.c:
      * plugins/elements/gstfilesink.c:
      * plugins/elements/gstfilesrc.c:
      * plugins/elements/gstidentity.c:
      * plugins/elements/gstqueue.c:
      * plugins/elements/gsttee.c:
      * plugins/elements/gsttypefindelement.c:
      (gst_type_find_element_handle_event):
      make GstElementDetails const
      e90fcdbc
    • Stefan Kost's avatar
      gst/gstbin.c: Update docs. · 185188ab
      Stefan Kost authored
      Original commit message from CVS:
      Patch by: Stefan Kost <ensonic at sonicpulse dot de>
      * gst/gstbin.c: (gst_bin_handle_message_func):
      Update docs.
      Don't leak bin refcount when a state recalc is
      in progress and we delay another one #339808.
      185188ab
  5. 21 Mar, 2006 1 commit
    • Edward Hervey's avatar
      Series of fixes for dereferenced pointers that gcc 4.1 complains about. · ac377b0c
      Edward Hervey authored
      Original commit message from CVS:
      reviewed by: <delete if not using a buddy>
      * gst/gstbin.c: (gst_bin_dispose), (gst_bin_provide_clock_func),
      (gst_bin_handle_message_func):
      * gst/gstclock.c: (gst_clock_dispose), (gst_clock_set_master):
      * gst/gstelement.c: (gst_element_set_clock), (gst_element_dispose),
      (gst_element_set_bus_func):
      * gst/gstghostpad.c: (gst_proxy_pad_dispose):
      * gst/gstminiobject.c: (gst_value_set_mini_object),
      (gst_value_take_mini_object):
      * gst/gstpad.c: (gst_pad_set_pad_template):
      * gst/gstpipeline.c: (gst_pipeline_dispose),
      (gst_pipeline_use_clock), (gst_pipeline_auto_clock):
      * libs/gst/base/gstcollectpads.c: (gst_collect_pads_pop),
      (gst_collect_pads_chain):
      * libs/gst/net/gstnettimeprovider.c:
      (gst_net_time_provider_set_property):
      Series of fixes for dereferenced pointers that gcc 4.1 complains about.
      It's in fact all issues with gst_*object_replace().
      ac377b0c
  6. 20 Mar, 2006 1 commit
  7. 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
  8. 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
  9. 20 Feb, 2006 1 commit
  10. 13 Feb, 2006 1 commit
    • Wim Taymans's avatar
      docs/design/part-TODO.txt: Updated TODO list, basesrc supports seeking to non-bytes formats. · b3776665
      Wim Taymans authored
      Original commit message from CVS:
      * docs/design/part-TODO.txt:
      Updated TODO list, basesrc supports seeking to non-bytes
      formats.
      
      * docs/design/part-element-sink.txt:
      Update docs.
      
      * gst/gstbin.c: (bin_replace_message),
      (gst_bin_handle_message_func):
      * gst/gstbus.c: (gst_bus_post), (gst_bus_pop):
      * gst/gstevent.c: (gst_event_finalize):
      * gst/gstpad.c: (gst_pad_event_default_dispatch),
      (gst_pad_send_event):
      Use shiny new _TYPE_NAME macros.
      
      * libs/gst/base/gstbasesrc.c: (gst_base_src_get_range):
      Move debug statement up.
      
      * gst/gstelement.c: (gst_element_set_locked_state):
      Add some debugging.
      b3776665
  11. 31 Jan, 2006 1 commit
  12. 27 Jan, 2006 1 commit
    • Jan Schmidt's avatar
      gst/gstbin.c: Clean up references to the clock provider when disposed or when... · 6ef1fd2c
      Jan Schmidt authored
      gst/gstbin.c: Clean up references to the clock provider when disposed or when handling a clock-lost message from it.
      
      Original commit message from CVS:
      * gst/gstbin.c: (gst_bin_dispose), (gst_bin_provide_clock_func),
      (gst_bin_remove_func), (gst_bin_handle_message_func),
      (bin_query_duration_fold), (bin_query_generic_fold):
      Clean up references to the clock provider when disposed or when
      handling a clock-lost message from it.
      
      Unref sinks when performing a query via gst_iterator_fold, as the
      gst_bin_iterate_sinks iterator refs each item. (Fixes #323874)
      
      * gst/gstclock.c: (gst_clock_class_init), (gst_clock_dispose),
      (gst_clock_set_master):
      Drop our reference to the master clock, if any, when we are disposed.
      
      * gst/gsttypefindfactory.c: (gst_type_find_factory_dispose):
      Chain up in dispose.
      6ef1fd2c
  13. 26 Jan, 2006 1 commit
    • Stefan Kost's avatar
      added code for downstream events, reviewed docs in gstevent.c · b352cee4
      Stefan Kost authored
      Original commit message from CVS:
      * docs/gst/gstreamer-sections.txt:
      * gst/gstbin.c: (bin_element_is_src), (src_iterator_filter),
      (gst_bin_iterate_sources), (gst_bin_send_event):
      * gst/gstbin.h:
      * gst/gstelement.c: (gst_element_send_event):
      * gst/gstevent.c:
      * gst/gstpad.c: (gst_pad_send_event):
      added code for downstream events, reviewed docs in gstevent.c
      b352cee4
  14. 20 Jan, 2006 1 commit
    • Thomas Vander Stichele's avatar
      docs/random/release: update notes · 0e08e35e
      Thomas Vander Stichele authored
      Original commit message from CVS:
      
      * docs/random/release:
      update notes
      * gst/gstbin.c: (gst_bin_init):
      * gst/gstbus.c: (gst_bus_new):
      * gst/gstbus.h:
      * gst/gstpipeline.c: (gst_pipeline_init):
      use gst_bus_new(), improve logging, fix docs
      * win32/common/config.h:
      update for cvs build
      0e08e35e
  15. 18 Jan, 2006 2 commits
    • Tim-Philipp Müller's avatar
      gst/gstbin.c: Guard gst_object_unref call against a NULL object (dispose can... · da80e616
      Tim-Philipp Müller authored
      gst/gstbin.c: Guard gst_object_unref call against a NULL object (dispose can theoretically be called multiple times).
      
      Original commit message from CVS:
      * gst/gstbin.c: (gst_bin_dispose):
      Guard gst_object_unref call against a NULL object (dispose
      can theoretically be called multiple times).
      da80e616
    • Wim Taymans's avatar
      gst/: Added some more debug info. · c3312117
      Wim Taymans authored
      Original commit message from CVS:
      * gst/gstbin.c: (gst_bin_element_set_state):
      * gst/gstclock.c: (gst_clock_id_wait):
      Added some more debug info.
      
      * libs/gst/base/gstadapter.c:
      Added more docs.
      
      * libs/gst/base/gstbasesink.c: (gst_base_sink_handle_object),
      (gst_base_sink_do_sync), (gst_base_sink_chain):
      Added some comments.
      c3312117
  16. 29 Dec, 2005 1 commit
  17. 16 Dec, 2005 1 commit
  18. 25 Nov, 2005 1 commit
  19. 24 Nov, 2005 1 commit
    • Wim Taymans's avatar
      Doc fixes. · a9f7f7b7
      Wim Taymans authored
      Original commit message from CVS:
      Doc fixes.
      a9f7f7b7
  20. 22 Nov, 2005 1 commit
    • Wim Taymans's avatar
      gst/base/gstbasesink.*: No need to store the clock, the parent element class already has it. · cf925ebb
      Wim Taymans authored
      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.
      cf925ebb
  21. 21 Nov, 2005 3 commits
  22. 19 Nov, 2005 2 commits
    • 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/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
  23. 18 Nov, 2005 1 commit
    • 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
  24. 17 Nov, 2005 2 commits
  25. 03 Nov, 2005 1 commit
    • Wim Taymans's avatar
      check/states/sinks.c: Added some more checks. Specifically the case where... · 43fe0b06
      Wim Taymans authored
      check/states/sinks.c: Added some more checks. Specifically the case where NO_PREROLL elements are in the pipeline.
      
      Original commit message from CVS:
      * check/states/sinks.c: (GST_START_TEST), (gst_object_suite):
      Added some more checks. Specifically the case where NO_PREROLL
      elements are in the pipeline.
      
      * gst/base/gstbasesink.c: (gst_base_sink_commit_state),
      (gst_base_sink_handle_object), (gst_base_sink_do_sync),
      (gst_base_sink_get_position):
      Post READY->PAUSED state change messages too.
      Fix bug where VOID was posted as pending state...
      
      * gst/gstbin.c: (gst_bin_recalc_state):
      use _element_continue_state() to continue the state change.
      
      * gst/gstelement.c: (gst_element_continue_state),
      (gst_element_commit_state), (gst_element_set_state_func),
      (gst_element_change_state), (gst_element_change_state_func):
      Lots of state change cleanups, assign the STATE_RETURN in
      a new continue_state() function that also propagates the
      last return value from a state change to the app.
      Update some debug statements with proper category.
      43fe0b06
  26. 02 Nov, 2005 2 commits
    • Wim Taymans's avatar
      gst/gstbin.c: Fix typo in docs. · 563477a6
      Wim Taymans authored
      Original commit message from CVS:
      * gst/gstbin.c:
      Fix typo in docs.
      
      * gst/gstelement.c: (gst_element_commit_state):
      Remove unused value.
      
      * gst/gstiterator.c:
      Mention that the returned element is reffed in the docs.
      563477a6
    • Thomas Vander Stichele's avatar
      doc updates · d581d5c9
      Thomas Vander Stichele authored
      Original commit message from CVS:
      
      * docs/README:
      * docs/gst/gstreamer-sections.txt:
      * gst/gstbin.c:
      doc updates
      * gst/gstregistry.c: (gst_registry_scan_path_level):
      fix for a nasty little missed situation where an installed plug-in
      which was in the cache did not get overridden by an uninstalled one
      which was earlier in the plugin path because the newly created plugin
      for the uninstalled one (not in the registry) didn't get its
      ->registered set to TRUE
      d581d5c9
  27. 01 Nov, 2005 1 commit
  28. 28 Oct, 2005 1 commit
  29. 27 Oct, 2005 1 commit
    • Wim Taymans's avatar
      gst/base/gstbasesink.c: Some more debug. · 7f22710f
      Wim Taymans authored
      Original commit message from CVS:
      * gst/base/gstbasesink.c: (gst_base_sink_handle_object),
      (gst_base_sink_get_position):
      Some more debug.
      
      * gst/gstbin.c: (message_check), (bin_replace_message),
      (bin_remove_messages), (is_eos), (gst_bin_add_func),
      (update_degree), (gst_bin_sort_iterator_next), (bin_bus_handler),
      (bin_query_duration_init), (bin_query_duration_fold),
      (bin_query_duration_done), (bin_query_generic_fold),
      (gst_bin_query):
      * tools/gst-launch.c: (main):
      Remove old option.
      7f22710f
  30. 25 Oct, 2005 2 commits
    • Wim Taymans's avatar
      gst/gstbin.c: Some doc and debug updates. · ef17d9b6
      Wim Taymans authored
      Original commit message from CVS:
      * gst/gstbin.c: (message_check), (bin_replace_message),
      (bin_remove_messages), (is_eos), (gst_bin_add_func),
      (update_degree), (gst_bin_sort_iterator_next), (bin_bus_handler),
      (bin_query_duration_init), (bin_query_duration_fold),
      (bin_query_duration_done), (bin_query_generic_fold),
      (gst_bin_query):
      Some doc and debug updates.
      Cache previously requested query DURATION for speed. invalidate
      cached duration if element posts a DURATION message.
      ef17d9b6
    • Wim Taymans's avatar
      docs/design/part-TODO.txt: Update TODO. · 2803a558
      Wim Taymans authored
      Original commit message from CVS:
      * docs/design/part-TODO.txt:
      Update TODO.
      
      * gst/gstbin.c: (message_check), (bin_replace_message),
      (bin_remove_messages), (is_eos), (gst_bin_add_func),
      (update_degree), (gst_bin_sort_iterator_next), (bin_bus_handler),
      (bin_query_duration_init), (bin_query_duration_fold),
      (bin_query_duration_done), (bin_query_generic_fold),
      (gst_bin_query):
      Handle SEGMENT_START/DONE messages correctly.
      More evolved query algorithm that handles duration queries
      correctly.
      
      * gst/gstelement.c: (gst_element_send_event), (gst_element_query),
      (gst_element_get_state_func), (gst_element_abort_state),
      (gst_element_commit_state), (gst_element_lost_state):
      Some more debugging.
      
      * gst/gstmessage.h:
      Added doc.
      2803a558
  31. 20 Oct, 2005 2 commits
    • Wim Taymans's avatar
      gst/gstbin.c: Reworked the message handling a bit, cache the messages instead... · 40f11256
      Wim Taymans authored
      gst/gstbin.c: Reworked the message handling a bit, cache the messages instead of only the senders. alows us to do mor...
      
      Original commit message from CVS:
      * gst/gstbin.c: (message_check), (bin_replace_message),
      (bin_remove_messages), (is_eos), (gst_bin_add_func),
      (update_degree), (gst_bin_sort_iterator_next),
      (gst_bin_change_state_func), (gst_bin_dispose), (bin_bus_handler):
      Reworked the message handling a bit, cache the messages instead of
      only the senders. alows us to do more in the future.
      40f11256
    • Wim Taymans's avatar
      gst/base/gstbasesink.c: Speed up current position calculation. · 4dbc7a5b
      Wim Taymans authored
      Original commit message from CVS:
      * gst/base/gstbasesink.c: (gst_base_sink_get_position),
      (gst_base_sink_query):
      Speed up current position calculation.
      
      * gst/base/gstbasesrc.c: (gst_base_src_query),
      (gst_base_src_default_newsegment):
      Correctly set stream position in newsegment.
      
      * gst/gstbin.c: (gst_bin_add_func), (add_to_queue),
      (update_degree), (gst_bin_sort_iterator_next),
      (gst_bin_sort_iterator_resync), (gst_bin_sort_iterator_free):
      * gst/gstmessage.c: (gst_message_new_custom):
      Clean up debugging info
      
      * gst/gstqueue.c: (gst_queue_link_src), (gst_queue_chain),
      (gst_queue_loop), (gst_queue_handle_src_query):
      Pause task faster.
      4dbc7a5b