Tim-Philipp Müller
7db9429e9c
win32: update exports for new flags get_type()
2016-01-17 00:08:33 +00:00
Philip Van Hoof
cb625698a2
tracer.h: don't include private noinst header gsttracerutils.h in a public header
...
https://bugzilla.gnome.org/show_bug.cgi?id=760732
2016-01-17 00:00:51 +00:00
Stefan Sauer
83d7dbb393
benchmark: improve script
...
Use a temp file for the log and fix one env-var.
2016-01-16 21:24:19 +01:00
Stefan Sauer
84554af301
tracer/stats: use the right log template
...
When porting we used the wrong record (copy and paste).
2016-01-16 21:23:10 +01:00
Stefan Sauer
d15da9e221
tracer: update the docs
...
Add the new enum and flags. Remove the GstTracerRecordPrivate.
2016-01-16 21:04:46 +01:00
Stefan Sauer
765cf11ff8
gst-stats: update to latest tarcer api
...
The thread-ids are serialized as uint64. The 'elem-ix' got changed to
'element-ix'. Make the code a bit more robust.
2016-01-16 21:02:39 +01:00
Stefan Sauer
af91d23204
tracer: use the new flags to create the optional field in the format string
...
This spares us explicitly listing the field in the spec. and thus hide this
implementation detail.
2016-01-16 19:21:00 +01:00
Stefan Sauer
8cd76a918a
tracer: add a GstTracerValueFlags and replace strings
...
This allows us to document the flags and makes the logs a bit smaller.
2016-01-16 18:52:32 +01:00
Tim-Philipp Müller
dfb782ca97
message: add function guard to gst_message_set_buffering_stats()
...
https://bugzilla.gnome.org/show_bug.cgi?id=760704
2016-01-16 16:01:38 +00:00
Tim-Philipp Müller
8b88fc487f
gst.h: Don't spew warnings if GST_USE_UNSTABLE_API is not defined
...
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 89ee5d948d
.
2016-01-16 16:00:16 +00:00
Stefan Sauer
7801a46e5f
benchmarks: update the tracer benchmark and add a shell benchmark
2016-01-16 13:31:51 +01:00
Stefan Sauer
2d5ba30606
docs/design: update tracerspec examples
2016-01-16 13:31:51 +01:00
Stefan Sauer
1c8cfa42ea
docs/design: spell checking
2016-01-16 13:31:51 +01:00
Stefan Sauer
89ee5d948d
tracer: add a GFlag for the tracer scope
...
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-16 13:31:51 +01:00
Sebastian Dröge
485b15d8a9
output-selector: Make access to the active pad and last buffer thread-safe
...
Both can be modified from different threads at the same time.
2016-01-16 10:48:02 +01:00
Sebastian Dröge
0e132260a3
output-selector: Notify when the active-pad property is changing
2016-01-16 10:47:36 +01:00
Stefan Sauer
10b78d872b
tracerrecord: add a log record class
...
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
2016-01-15 21:54:01 +01:00
Sebastian Dröge
7b49459f1a
netclientclock: Check return value of g_socket_close()
...
CID 1348452
2016-01-15 09:48:32 +01:00
Sebastian Dröge
3315f483bc
netclientclock: Free data after removing it from the list
...
Does not matter here but makes Coverity more happy. It can't
know that g_list_remove() only looks at the pointer value but
does not dereference it.
CID 1348454
2016-01-15 09:02:42 +01:00
Nirbheek Chauhan
20c89fa8bc
GstDeviceMonitor: Clarify the behaviour of gst_device_monitor_add_filter
2016-01-14 22:07:51 +00:00
Nirbheek Chauhan
4d6c7ccd08
GstDeviceMonitor: Don't remove unmatched class filters
...
If no providers for a particular class could be found, then removing unmatched
filters would cause all devices to be returned instead which is not at all what
the user intended. We still return 0 for unmatched filters.
2016-01-14 22:07:51 +00:00
Florin Apostol
f875bec51e
netclientclock: Fix GError memory leak in handling NTP response
...
Error was not released if gst_ntp_packet_receive failed.
https://bugzilla.gnome.org/show_bug.cgi?id=760598
2016-01-13 23:01:18 +01:00
Matthew Waters
3da58942a9
win32: update exports for API additions
2016-01-13 13:10:10 +11:00
Matthew Waters
347734e529
info: expose debugging printf functions
...
Other gst libraries and/or elements may want to add some debug logging to an
external debug system or implement delayed debugging for performance reasons.
Exposes the internal __gst_vasprintf as gst_info_vasprintf which has a fallback
to g_vasprintf if the debug system is disabled.
API: gst_info_vasprintf
API: gst_info_strdup_vprintf
API: gst_info_strdup_printf
https://bugzilla.gnome.org/show_bug.cgi?id=760421
2016-01-13 11:56:14 +11:00
Carlos Rafael Giani
91496281eb
basesrc: Only set duration/position query values in case of query success
...
Currently, the query values are being set even if the query itself was
determined to have failed. Fix this to ensure the values are only set in
case of a query success.
https://bugzilla.gnome.org/show_bug.cgi?id=760479
2016-01-11 21:42:10 +01:00
Stefan Sauer
30741e0206
tracers: code clean ups
...
Drop some trailing whilespace. Make field order consistent.
2016-01-10 14:30:05 +01:00
Stefan Sauer
fff9680c93
benchmark: fix copy'n'past of the file-description comment
2016-01-08 23:35:53 +01:00
Stefan Sauer
bb40a18413
benchmark: add a benchmark for bgo/760267
...
Big suprise - GstStructure is faster than GVariant.
2016-01-08 23:13:29 +01:00
HoonHee Lee
788938640d
funnel: improve debug message
...
https://bugzilla.gnome.org/show_bug.cgi?id=745939
2016-01-08 19:28:43 +00:00
Tim-Philipp Müller
4febebb962
info: add buffer list support to GST_PTR_FORMAT
2016-01-08 19:25:24 +00:00
Aurélien Zanelli
6b71877692
controlsource: fix GetValue and GetValueArray documentation
...
GstControlSourceGetValue() value paramater is a gdouble, not a GValue
and GstControlSourceGetValueArray doesn't return a GstValueArray but
an array of double.
https://bugzilla.gnome.org/show_bug.cgi?id=758668
2016-01-08 18:24:06 +00:00
Stefan Sauer
2f41e7bc6a
tracer: harmonize the query hooks
...
In post hooks always pass the return value as the last param. Pass the query
also to post hooks since it is still alive.
2016-01-07 23:03:48 +01:00
Stefan Sauer
fb249dadcb
tracers/stats: add missing parameters to callback functions
2016-01-07 22:47:37 +01:00
Stefan Sauer
281f792042
tracerutils: update #endif comment
...
We changed the define, but left the comment inconsistent.
2016-01-07 22:43:58 +01:00
Stefan Sauer
8968af3589
tracerutils: document the tracer hook functions
...
Document all tracer hook function pointer together with the detail string that
one needs to use with gst_tracing_register_hook().
2016-01-07 22:41:32 +01:00
Sebastian Dröge
9d91ad0b85
tracer: Use GST_DISABLE_GST_TRACER_HOOKS instead of GST_DISABLE_GST_DEBUG everywhere
...
Previously we used the latter one still for the tracer utility code, causing
undefined references in the resulting binary if the debugging system was
disabled but the tracer system not.
2016-01-07 18:46:21 +02:00
Sebastian Dröge
d787105fd5
gst: Rename _priv_gst_info_start_time to _priv_gst_start_time and initialize it centrally
...
It's used by the debugging and tracer subsystem and in various files, make it
a central thing that is initialized independ of the existence of those
subsystems.
2016-01-07 18:41:25 +02:00
Stefan Sauer
842b472772
win32: update win32 exports
...
Remove the _hook_id() methods we made internal in the prev commit.
2016-01-06 21:42:30 +01:00
Stefan Sauer
555f48da4b
structure: log a warning if we can't serialize a field
...
The function always returns TRUE right now, so atleast log something.
2016-01-06 21:25:32 +01:00
Aleksander Wabik
90318900a1
tests: queue2: add test for fill level arithmetic overflow
...
https://bugzilla.gnome.org/show_bug.cgi?id=755971
2016-01-06 20:00:46 +00:00
Tim-Philipp Müller
61e2f1eab1
queue2: avoid calculating fill levels multiple times
...
Macro expansion means we might calculate the fill level once
for the check and then possibly again for the return value.
2016-01-06 20:00:46 +00:00
Tim-Philipp Müller
8c6c0bef88
queue2: fix fill level arithmetic overflow with large values
...
Based on patch by: Aleksander Wabik <awabik@opera.com>
https://bugzilla.gnome.org/show_bug.cgi?id=755971
2016-01-06 20:00:46 +00:00
Stefan Sauer
5e40639be7
tracer: make gst_tracing_register_hook_id static
...
We don't need to expose this as public API. Change the only plugin that was
using it.
2016-01-06 20:46:58 +01:00
Tim-Philipp Müller
d94e0c4563
docs: design: update list of disted files after file rename
2016-01-06 18:56:56 +00:00
Sebastian Dröge
2d38699144
docs: Hide NTP packet API and add GST_PTP_STATISTICS_* defines to the docs
2016-01-06 19:42:49 +02:00
Stefan Sauer
2159aa56bc
docs: remove parent docs for GstPtpClock
...
Instance docs don't need to docuemnt the parent (first member).
2016-01-06 18:17:27 +01:00
Stefan Sauer
8b6ad65e63
docs: cleanup -unused.txt report for libs
...
The IGNORE_H_FILES can only contain files or dirs.
2016-01-06 18:14:06 +01:00
Stefan Sauer
110451397a
docs: add more core api to the right sections
...
Add new and documented api reported in -unused.txt to -section.txt.
2016-01-06 17:59:23 +01:00
Stefan Sauer
cf0738e43e
docs: exclude more header from doc-scan
...
Exclude gst/printf/*.h and a few generated .h files from the api-scan. This
makes -unused.txt report file from gtkdoc useful again.
2016-01-06 17:59:23 +01:00
Sebastian Dröge
5fe1b7efe3
clock: adjust/unadjust_with_calibration() have a clock parameter but it's useless
...
Document this, for 2.0 we should just remove that parameter.
2016-01-06 16:25:38 +02:00