1. 24 Sep, 2018 1 commit
    • Tim-Philipp Müller's avatar
      libs: figure out right export define in configure · 57c8e014
      Tim-Philipp Müller authored
      Add new GST_API_EXPORT in config.h and use that for GST_*_API
      decorators instead of GST_EXPORT.
      
      The right export define depends on the toolchain and whether
      we're using -fvisibility=hidden or not, so it's better to set it
      to the right thing directly than hard-coding a compiler whitelist
      in the public header.
      
      We put the export define into config.h instead of passing it via the
      command line to the compiler because it might contain spaces and brackets
      and in the autotools scenario we'd have to pass that through multiple
      layers of plumbing and Makefile/shell escaping and we're just not going
      to be *that* lucky.
      
      The export define is only used if we're compiling our lib, not by external
      users of the lib headers, so it's not a problem to put it into config.h
      
      Also, this means all .c files of libs need to include config.h
      to get the export marker defined, so fix up a few that didn't
      include config.h.
      
      This commit depends on a common submodule commit that makes gst-glib-gen.mak
      add an #include "config.h" to generated enum/marshal .c files for the
      autotools build.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=797185
      57c8e014
  2. 24 Jun, 2018 1 commit
  3. 17 May, 2017 1 commit
  4. 09 Apr, 2017 1 commit
  5. 08 Apr, 2017 1 commit
    • Tim-Philipp Müller's avatar
      Don't use deprecated g_object_newv() · 519d6488
      Tim-Philipp Müller authored
      Use g_object_new() instead which nowadays has a shortcut for the
      no-properties check. It still does an extra GType check in the
      function guard, but there's a pending patch to remove that
      and it's hardly going to be a performance issue in practice,
      even less so on a system that's compiled without run-time checks.
      
      Alternative would be to move to the new g_object_new_properties()
      with a fallback define for older glib versions, but it makes the
      code look more unwieldy and doesn't seem worth it.
      
      Fixes deprecation warnings when building against newer GLib versions.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=780903
      519d6488
  6. 27 Jan, 2017 1 commit
  7. 07 Mar, 2013 1 commit
  8. 06 Mar, 2013 1 commit
  9. 03 Nov, 2012 1 commit
  10. 20 Jun, 2012 1 commit
  11. 12 Apr, 2012 1 commit
  12. 31 Jan, 2012 1 commit
  13. 27 Jan, 2012 2 commits
  14. 19 Jan, 2012 1 commit
  15. 01 Jan, 2012 2 commits
  16. 25 Dec, 2011 1 commit
  17. 19 Dec, 2011 1 commit
  18. 15 Dec, 2011 1 commit
  19. 06 Dec, 2011 1 commit
  20. 04 Dec, 2011 1 commit
    • Tim-Philipp Müller's avatar
      Work around deprecated thread API in glib master · 5889260d
      Tim-Philipp Müller authored
      Add private replacements for deprecated functions such as
      g_mutex_new(), g_mutex_free(), g_cond_new() etc., mostly
      to avoid the deprecation warnings. We can't change most of
      these in 0.10 because they're part of our API and ABI.
      5889260d
  21. 04 Nov, 2011 1 commit
    • Stefan Sauer's avatar
      controller: move to core/gstobject · 9a27b9c0
      Stefan Sauer authored
      Move the controller to gstobject as a simple delegate. The controller and
      controlsource are not classes in core. The controlsources stay separate as a lib
      for now. This way we can avoid the qdata lookups.
      
      Also remove controller_init(). There is no more need to link to controller for
      elements.
      
      Also sanitize the API. We now have functions to add properties like we had
      methods to remove that. That avoids then ref count hacks we had in _new.
      9a27b9c0
  22. 13 Sep, 2011 1 commit
  23. 26 Aug, 2011 1 commit
  24. 08 Oct, 2010 2 commits
  25. 05 Oct, 2010 1 commit
  26. 15 Apr, 2010 1 commit
  27. 10 Mar, 2010 1 commit
  28. 09 Mar, 2010 1 commit
  29. 28 Oct, 2009 1 commit
    • Edward Hervey's avatar
      optimisation : Use g_object_newv where possible. · 27284628
      Edward Hervey authored
      This avoids:
      * triple-checking for the GType when type-checking is enabled (see #597260)
      * Avoids going through an expensive no-argument checking which landed in
        glib-2.22
      * Avoids going through 2 extrac functions (g_object_new -> g_object_new_valist)
      27284628
  30. 17 Nov, 2008 1 commit
    • Sebastian Dröge's avatar
      libs/gst/controller/: Use gst_guint64_to_gdouble instead of... · 8e8a5cbf
      Sebastian Dröge authored
      libs/gst/controller/: Use gst_guint64_to_gdouble instead of gst_util_guint64_to_gdouble as it is mapped to a cast on ...
      
      Original commit message from CVS:
      * libs/gst/controller/gstinterpolation.c:
      * libs/gst/controller/gstlfocontrolsource.c:
      Use gst_guint64_to_gdouble instead of gst_util_guint64_to_gdouble
      as it is mapped to a cast on non-win32 platforms.
      8e8a5cbf
  31. 22 Mar, 2008 1 commit
    • Sebastian Dröge's avatar
      Define G_PARAM_STATIC_STRINGS if it's undefined (GLib < 2.13.0) and use it... · b0346dff
      Sebastian Dröge authored
      Define G_PARAM_STATIC_STRINGS if it's undefined (GLib < 2.13.0) and use it everywhere for GParamSpecs that use static...
      
      Original commit message from CVS:
      * docs/pwg/advanced-dparams.xml:
      * docs/pwg/building-props.xml:
      * docs/pwg/other-source.xml:
      * gst/glib-compat.h:
      * gst/gstbin.c: (gst_bin_class_init):
      * gst/gstclock.c: (gst_clock_class_init):
      * gst/gstindex.c: (gst_index_class_init):
      * gst/gstobject.c: (gst_object_class_init):
      * gst/gstpad.c: (gst_pad_class_init):
      * gst/gstpipeline.c: (gst_pipeline_class_init):
      * libs/gst/base/gstbasesink.c: (gst_base_sink_class_init):
      * libs/gst/base/gstbasesrc.c: (gst_base_src_class_init):
      * libs/gst/base/gstbasetransform.c:
      (gst_base_transform_class_init):
      * libs/gst/base/gstdataqueue.c: (gst_data_queue_class_init):
      * libs/gst/check/gstcheck.c: (_gst_check_fault_handler_restore),
      (_gst_check_fault_handler_sighandler),
      (_gst_check_fault_handler_setup), (gst_check_init):
      * libs/gst/controller/gstcontroller.c:
      (_gst_controller_class_init):
      * libs/gst/controller/gstlfocontrolsource.c:
      (gst_lfo_control_source_class_init):
      * libs/gst/net/gstnetclientclock.c:
      (gst_net_client_clock_class_init):
      * libs/gst/net/gstnettimeprovider.c:
      (gst_net_time_provider_class_init):
      * plugins/elements/gstcapsfilter.c: (gst_capsfilter_class_init):
      * plugins/elements/gstfakesink.c: (gst_fake_sink_class_init):
      * plugins/elements/gstfakesrc.c: (gst_fake_src_class_init):
      * plugins/elements/gstfdsink.c: (gst_fd_sink_class_init):
      * plugins/elements/gstfdsrc.c: (gst_fd_src_class_init):
      * plugins/elements/gstfilesink.c: (gst_file_sink_class_init):
      * plugins/elements/gstfilesrc.c: (gst_file_src_class_init):
      * plugins/elements/gstidentity.c: (gst_identity_class_init):
      * plugins/elements/gstmultiqueue.c: (gst_multi_queue_class_init):
      * plugins/elements/gstqueue.c: (gst_queue_class_init):
      * plugins/elements/gsttee.c: (gst_tee_class_init):
      * plugins/elements/gsttypefindelement.c:
      (gst_type_find_element_class_init):
      * plugins/indexers/gstfileindex.c: (gst_file_index_class_init):
      Define G_PARAM_STATIC_STRINGS if it's undefined (GLib < 2.13.0) and
      use it everywhere for GParamSpecs that use static strings (i.e. all).
      This gives us less memory usage, fewer allocations and thus less
      memory defragmentation. Fixes bug #523806.
      b0346dff
  32. 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
  33. 13 Sep, 2007 1 commit
  34. 10 Aug, 2007 1 commit
  35. 03 Aug, 2007 1 commit
    • Sebastian Dröge's avatar
      libs/gst/controller/: API: Add GstLFOControlSource, a control source that... · b4746972
      Sebastian Dröge authored
      libs/gst/controller/: API: Add GstLFOControlSource, a control source that gives values for specific timestamps based ...
      
      Original commit message from CVS:
      reviewed by: Stefan Kost <ensonic@users.sf.net>
      * libs/gst/controller/Makefile.am:
      * libs/gst/controller/gstlfocontrolsource.c: (_calculate_pos),
      (gst_lfo_waveform_get_type), (gst_lfo_control_source_reset),
      (gst_lfo_control_source_new),
      (gst_lfo_control_source_set_waveform),
      (gst_lfo_control_source_bind), (gst_lfo_control_source_init),
      (gst_lfo_control_source_finalize),
      (gst_lfo_control_source_dispose),
      (gst_lfo_control_source_set_property),
      (gst_lfo_control_source_get_property),
      (gst_lfo_control_source_class_init):
      * libs/gst/controller/gstlfocontrolsource.h:
      * libs/gst/controller/gstlfocontrolsourceprivate.h:
      API: Add GstLFOControlSource, a control source that gives values
      for specific timestamps based on several periodic waveforms.
      Fixes #459717.
      * tests/check/libs/controller.c: (GST_START_TEST),
      (gst_controller_suite):
      * docs/libs/gstreamer-libs-docs.sgml:
      * docs/libs/gstreamer-libs-sections.txt:
      * docs/libs/gstreamer-libs.types:
      Add documentation and unit tests for GstLFOControlSource.
      b4746972