1. 29 Mar, 2012 1 commit
  2. 11 Mar, 2012 1 commit
    • Wim Taymans's avatar
      caps: avoid using in-place oprations · 43abf99a
      Wim Taymans authored
      Rework some caps operations so they don't rely on writable caps but instead take
      ownership of the input caps and do _make_writable() only when needed.
      Remove some const from caps functions, it does not make much sense for
      refcounted objects and does not allow us to return a refcount to the const input
      caps.
      Rework the base classes fixate vmethods to not operate on the caps in-place.
      All this saves us around 30% of caps and structure copy and new operations.
      43abf99a
  3. 02 Mar, 2012 1 commit
  4. 28 Jan, 2012 1 commit
  5. 25 Jan, 2012 1 commit
  6. 16 Oct, 2011 1 commit
  7. 11 Oct, 2011 1 commit
  8. 26 Aug, 2011 1 commit
  9. 17 May, 2011 3 commits
  10. 16 Apr, 2011 1 commit
    • Sebastian Dröge's avatar
      element: Inherit element metadata and pad templates from parent classes · aad57970
      Sebastian Dröge authored
      This allows to add pad templates and set metadata in class_init instead of
      base_init. base_init is a concept that is not supported by almost all
      languages and copying the templates/metadata for subclasses is the more
      intuitive way of doing things.
      
      Subclasses can override pad templates of parent classes by adding a new
      template with the same now.
      
      Also gst_element_class_add_pad_template() now takes ownership of the
      pad template, which was assumed by all code before anyway.
      
      Fixes bug #491501.
      aad57970
  11. 08 Mar, 2011 1 commit
  12. 06 Jan, 2011 1 commit
  13. 07 Dec, 2010 2 commits
  14. 03 Dec, 2010 3 commits
  15. 25 Nov, 2009 1 commit
  16. 06 Oct, 2009 1 commit
  17. 11 May, 2009 1 commit
  18. 15 Apr, 2009 1 commit
  19. 08 Apr, 2009 1 commit
  20. 04 Apr, 2009 1 commit
  21. 11 Mar, 2009 1 commit
  22. 29 Aug, 2008 1 commit
    • David Schleef's avatar
      gst/gstpadtemplate.c: Revert last change, since it breaks a few plugins,... · 7c901304
      David Schleef authored
      gst/gstpadtemplate.c: Revert last change, since it breaks a few plugins, ffmpeg, alaw, and mulaw.  Code is correct, b...
      
      Original commit message from CVS:
      * gst/gstpadtemplate.c: Revert last change, since it breaks
      a few plugins, ffmpeg, alaw, and mulaw.  Code is correct,
      but shouldn't be enabled until we've released fixed versions
      of -good and -ffmpeg.
      7c901304
  23. 28 Aug, 2008 1 commit
    • Stefan Kost's avatar
      gst/gstpadtemplate.c: The old behaviour was that gst_pad_template_new() takes... · 29f2239a
      Stefan Kost authored
      gst/gstpadtemplate.c: The old behaviour was that gst_pad_template_new() takes ownership of the caps. As we now call g...
      
      Original commit message from CVS:
      * gst/gstpadtemplate.c:
      The old behaviour was that gst_pad_template_new() takes ownership of
      the caps. As we now call g_object_new() which calls g_object_set() and
      which copies the caps, we have to unref them to not leak them. Fixes
      make valgrid for me.
      29f2239a
  24. 01 Aug, 2008 1 commit
    • Tim-Philipp Müller's avatar
      gst/gstpadtemplate.c: Add "name-template", "direction", "presence" and "caps"... · 2fd47ae8
      Tim-Philipp Müller authored
      gst/gstpadtemplate.c: Add "name-template", "direction", "presence" and "caps" properties, so that gst_pad_template_ne...
      
      Original commit message from CVS:
      * gst/gstpadtemplate.c:
      (gst_pad_template_class_init), (gst_static_pad_template_get),
      (gst_pad_template_new), (gst_pad_template_pad_created),
      (gst_pad_template_set_property), (gst_pad_template_get_property):
      Add "name-template", "direction", "presence" and "caps" properties,
      so that gst_pad_template_new() is just a thin wrapper around
      g_object_new(), which is better for bindings. (Fixes: #539772)
      2fd47ae8
  25. 05 Feb, 2008 1 commit
    • Sebastian Dröge's avatar
      Revert previous changes to the behaviour of GstPadTemplates, etc and the... · 2faa7332
      Sebastian Dröge authored
      Revert previous changes to the behaviour of GstPadTemplates, etc and the possiblity to call them in class_init as it ...
      
      Original commit message from CVS:
      * gst/gstbin.c: (gst_bin_get_type), (gst_bin_base_init),
      (gst_bin_class_init):
      * gst/gstelement.c: (gst_element_base_class_init),
      (gst_element_class_add_pad_template):
      * gst/gstpadtemplate.c: (gst_pad_template_init):
      * gst/gstpipeline.c: (gst_pipeline_get_type),
      (gst_pipeline_base_init), (gst_pipeline_class_init):
      * libs/gst/base/gstbasesink.c:
      * libs/gst/base/gstbasesrc.c: (gst_base_src_get_type),
      (gst_base_src_base_init), (gst_base_src_class_init):
      * plugins/elements/gstcapsfilter.c: (gst_capsfilter_base_init),
      (gst_capsfilter_class_init):
      * plugins/elements/gstfakesink.c: (gst_fake_sink_base_init),
      (gst_fake_sink_class_init):
      * plugins/elements/gstfakesrc.c: (gst_fake_src_base_init),
      (gst_fake_src_class_init):
      * plugins/elements/gstfdsink.c: (gst_fd_sink_base_init),
      (gst_fd_sink_class_init):
      * plugins/elements/gstfdsrc.c: (gst_fd_src_base_init),
      (gst_fd_src_class_init):
      * plugins/elements/gstfilesink.c: (gst_file_sink_base_init),
      (gst_file_sink_class_init):
      * plugins/elements/gstfilesrc.c: (gst_file_src_base_init),
      (gst_file_src_class_init):
      * plugins/elements/gstidentity.c: (gst_identity_base_init),
      (gst_identity_class_init):
      * plugins/elements/gstmultiqueue.c: (gst_multi_queue_base_init),
      (gst_multi_queue_class_init):
      * plugins/elements/gstqueue.c: (gst_queue_base_init),
      (gst_queue_class_init):
      * plugins/elements/gsttee.c: (gst_tee_base_init),
      (gst_tee_class_init):
      * plugins/elements/gsttypefindelement.c:
      (gst_type_find_element_base_init),
      (gst_type_find_element_class_init):
      * tests/check/gst/gstelement.c: (gst_element_suite):
      Revert previous changes to the behaviour of GstPadTemplates, etc
      and the possiblity to call them in class_init as it breaks too
      many elements. Reopens bug #491501.
      Should be applied again for 0.11, thus added a few FIXME 0.11 at
      several places.
      2faa7332
  26. 03 Feb, 2008 1 commit
    • Sebastian Dröge's avatar
      gst/: Make it possible (and recommended) to set element details and add pad... · 86e45df8
      Sebastian Dröge authored
      gst/: Make it possible (and recommended) to set element details and add pad templates in the class_init functions by ...
      
      Original commit message from CVS:
      * gst/gstelement.c: (gst_element_base_class_init),
      (gst_element_class_add_pad_template):
      * gst/gstpadtemplate.c:
      Make it possible (and recommended) to set element details and add
      pad templates in the class_init functions by copying the details/pad
      templates in GstElement's base_init.
      Also make it possible to replace existing pad templates by adding
      a new one with the same name. This was done in a hackish fashion
      in same elements before already.
      Don't reference pad templates that are added a second time. A
      new pad template has a refcount of one and is not floating anymore
      and to be owned by the element's class. Make this more explicit by
      mentioning it in the docs of gst_element_class_add_pad_template().
      These changes are backwards compatible. Fixes bug #491501.
      * tests/check/gst/gstelement.c:
      Add unit test for setting element details, adding pad templates and
      replacing them in a subclass.
      86e45df8
  27. 12 Jun, 2006 1 commit
    • Wim Taymans's avatar
      Add G_UNLIKELY in type registration. · 7e972ee6
      Wim Taymans authored
      Original commit message from CVS:
      * gst/gsterror.c: (gst_g_error_get_type):
      * gst/gstpadtemplate.c: (gst_pad_template_get_type),
      (gst_static_pad_template_get_type):
      * gst/gsttaglist.c: (gst_tag_list_get_type):
      * gst/gsttagsetter.c: (gst_tag_setter_get_type):
      * gst/gsttypefindfactory.c: (gst_type_find_factory_get_type):
      * gst/gsturi.c: (gst_uri_handler_get_type):
      * gst/gstvalue.c: (gst_date_get_type):
      * gst/gstxml.c: (gst_xml_get_type):
      * libs/gst/base/gstbasesink.c: (gst_base_sink_get_type),
      (gst_base_sink_preroll_object), (gst_base_sink_get_position):
      * libs/gst/base/gstbasesrc.c: (gst_base_src_get_type):
      Add G_UNLIKELY in type registration.
      7e972ee6
  28. 07 May, 2006 1 commit
  29. 08 Apr, 2006 1 commit
    • Stefan Kost's avatar
      Fix #337365 (g_type_class_ref <-> g_type_class_peek_parent) · 77a56957
      Stefan Kost authored
      Original commit message from CVS:
      * gst/gstbuffer.c: (gst_subbuffer_class_init):
      * gst/gstclock.c: (gst_clock_class_init):
      * gst/gstelement.c: (gst_element_class_init):
      * gst/gstindex.c: (gst_index_class_init):
      * gst/gstindexfactory.c: (gst_index_factory_class_init):
      * gst/gstobject.c: (gst_object_class_init),
      (gst_signal_object_class_init):
      * gst/gstpad.c: (gst_pad_class_init):
      * gst/gstpadtemplate.c: (gst_pad_template_class_init):
      * gst/gstpluginfeature.c: (gst_plugin_feature_class_init):
      * gst/gstregistry.c: (gst_registry_class_init):
      * gst/gstsystemclock.c: (gst_system_clock_class_init):
      * gst/gsttask.c: (gst_task_class_init):
      * gst/gstxml.c: (gst_xml_class_init):
      * libs/gst/base/gstbasesink.c: (gst_base_sink_class_init):
      * libs/gst/base/gstbasesrc.c: (gst_base_src_class_init),
      (gst_base_src_loop):
      * libs/gst/controller/gstcontroller.c:
      (_gst_controller_class_init):
      * plugins/elements/gstfdsrc.c: (gst_fd_src_class_init):
      * plugins/indexers/gstfileindex.c: (gst_file_index_class_init):
      * plugins/indexers/gstmemindex.c: (gst_mem_index_class_init):
      * tests/old/examples/plugins/example.c: (gst_example_class_init):
      * tests/old/testsuite/threads/signals.c: (gst_test_class_init):
      Fix #337365 (g_type_class_ref <-> g_type_class_peek_parent)
      77a56957
  30. 06 Apr, 2006 1 commit
    • Michael Smith's avatar
      gst/gstpad.c: Use g_value_get_object() instead of g_value_dup_gst_object(), to... · 6c40c759
      Michael Smith authored
      gst/gstpad.c: Use g_value_get_object() instead of g_value_dup_gst_object(), to avoid double-reffing the pad template ...
      
      Original commit message from CVS:
      * gst/gstpad.c: (gst_pad_set_property):
      Use g_value_get_object() instead of g_value_dup_gst_object(),
      to avoid double-reffing the pad template (which we then sink,
      so this worked previously if (and only if) the pad template
      was floating.
      
      * gst/gstpadtemplate.c: (gst_pad_template_init),
      (gst_pad_template_pad_created):
      Never return floating references to pad templates, create
      them as initially-sunken.
      
      Document an extra function (and make this stop sinking our
      pad template, since that is now guaranteed to do nothing,
      since we created it sunken).
      
      * gst/gstghostpad.c:
      Fix docs typo.
      6c40c759
  31. 14 Feb, 2006 1 commit
    • Wim Taymans's avatar
      Fix padtemplate docs, fixes #328805. · 63245ea1
      Wim Taymans authored
      Original commit message from CVS:
      * docs/gst/gstreamer-sections.txt:
      * gst/gstpadtemplate.c:
      * gst/gstpadtemplate.h:
      Fix padtemplate docs, fixes #328805.
      63245ea1
  32. 20 Dec, 2005 1 commit
  33. 06 Dec, 2005 1 commit
  34. 15 Oct, 2005 2 commits