summaryrefslogtreecommitdiff
path: root/gst/gsttracerrecord.c
AgeCommit message (Collapse)AuthorFilesLines
2021-04-01gst: Add missing G_GNUC_NULL_TERMINATED markersChris White1-0/+1
Functions that require NULL as their last vararg are marked so the compiler can warn on missing NULL. Also, document the NULL terminator for gst_make_element_message_details() and gst_tracer_record_new(). https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/669 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/774>
2020-07-24tracer: declare GstTracer API stableTim-Philipp Müller1-2/+0
It's been around for more than 4 years and people have built lots of stuff on top of it, doesn't really make sense to keep it marked as unstable. We're unlikely to change it now, and we can always deprecate it and make a new one if needed. This stabilises the following API: - gst_tracer_register() - gst_tracing_get_active_tracers() - gst_tracing_register_hook() - gst_tracer_record_new() - gst_tracer_record_log() Might also help a bit with #424 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/576>
2020-06-19Fix up and add various "Since" markers and other related docs fixesSebastian Dröge1-0/+4
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/536>
2019-07-01tracerrecord: Be stricter while parsing record templatesNirbheek Chauhan1-3/+8
It's not really possible for us to recover when someone uses the gst_tracer_record_new() API incorrectly. Also, document a piece of somewhat-obscure code.
2018-11-12gst: Fix string leak when G_VALUE_COLLECT_INIT() was failedSeungha Yang1-0/+1
Returned string should be freed Fixes #319
2017-05-17gst: Clear floating flag in constructor of all GstObject subclasses that are ↵Sebastian Dröge1-1/+5
not owned by any parent I.e. most of them unfortunately. https://bugzilla.gnome.org/show_bug.cgi?id=743062
2017-05-17gst: Correctly annotate functions taking floating reference parameters and ↵Sebastian Dröge1-1/+1
returning floating references https://bugzilla.gnome.org/show_bug.cgi?id=702960
2017-04-08Don't use deprecated g_object_newv()Tim-Philipp Müller1-1/+1
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
2017-01-27Port gtk-doc comments to their equivalent markdown syntaxThibault Saunier1-6/+4
Modernizing our documentation and preparing a possible move to hotdoc. This commits also adds missing @title metadatas to all SECTIONs
2016-03-02tracerrecord: Remove useless NULL check and add assertion for making ↵Sebastian Dröge1-27/+26
assumptions explicit gst_structure_new_empty() is not returning NULL in any valid scenarios, checking for NULL here is useless. Especially because we would dereference any NULL right after the NULL check again. CID 1352037. We previously check if the string ends on .class, as such strrchr() should return something non-NULL. Add an assertion for that. CID 1349642.
2016-01-22tracerrecord: don't leak the spec structuresStefan Sauer1-64/+65
Change the gst_tracer_record_new() api to take the parameters the make the spec structure directly. This allows us to own the top-level structure and also collect the args so that we can take ownership of the sub-structures. https://bugzilla.gnome.org/show_bug.cgi?id=760821
2016-01-20tracerrecord: Fix self->spec structure invalid freeVineeth TM1-1/+0
self->spec is got using g_value_get_boxed(), which is a transfer none function. So the same should not be freed, which is resulting in wrong behavior. https://bugzilla.gnome.org/show_bug.cgi?id=760821
2016-01-20tracerrecord: Initialise flags to avoid wrong comparisionVineeth TM1-2/+3
GstTracerValueFlags is not being initialized and the same could result in wrong comparision and behavior. Hence initializing it to GST_TRACER_VALUE_FLAGS_NONE. https://bugzilla.gnome.org/show_bug.cgi?id=760821
2016-01-19tracerrecord: avoid overwriting valueLuis de Bethencourt1-2/+1
res value is overwritten, remove the assignment. priv__gst_structure_append_template_to_gstring () always returns TRUE anyway. CID 1349645
2016-01-19tracerrecord: Disable logging if GST_DISABLE_GST_DEBUGEdward Hervey1-0/+2
Make the gst_tracer_record_log() a no-op if the gst-debug subsystem is disabled.
2016-01-16tracer: use the new flags to create the optional field in the format stringStefan Sauer1-2/+17
This spares us explicitly listing the field in the spec. and thus hide this implementation detail.
2016-01-16gst.h: Don't spew warnings if GST_USE_UNSTABLE_API is not definedTim-Philipp Müller1-0/+2
Only hide GstTracer and GstTracerRecord API behind GST_USE_UNSTABLE_API, but don't spew any warnings, otherwise everyone has to define this to avoid compiler warnings. This reverts parts of commit 89ee5d948dff560204e6edd210c44ed2b8654b8e.
2016-01-16tracer: add a GFlag for the tracer scopeStefan Sauer1-2/+0
Port all tracers. Add the GST_USE_UNSTABLE_API flag to the internal CFLAGS so that we don't have to specify this for gir, docs, mkenum, ...
2016-01-15tracerrecord: add a log record classStefan Sauer1-0/+251
We use this class to register tracer log entry metadata and build a log template. With the log template we can serialize log data very efficiently. This also simplifies the logging code, since that is now a simple varargs function that is not exposing the implementation details. Add docs for the new class and basic tests. Remove the previous log handler. Fixes #760267