Stefan Sauer
f69382c5f9
tracer/gststats: fix mismatch between '.class' and tracer args
...
Clean up from the recent changes. The logging descriptiors did not match what we logged.
2016-01-20 09:14:12 +01:00
Jan Schmidt
c1f4920859
queue2: Add use-tags-bitrate property
...
The use-tags-bitrate property makes queue2 look at
tag events in the stream and extract a bitrate for the
stream to use when calculating a duration for buffers
that don't have one explicitly set.
This lets queue2 sensibly buffer to a time threshold
for any bytestream for which the general bitrate is known.
2016-01-20 03:13:44 +11:00
Luis de Bethencourt
227c387b43
tracerrecord: avoid overwriting value
...
res value is overwritten, remove the assignment.
priv__gst_structure_append_template_to_gstring () always returns TRUE
anyway.
CID 1349645
2016-01-19 12:04:19 +00:00
Edward Hervey
71f39aa2ef
benchmarks: Disable tracerserialize benchmark on GST_DISABLE_GST_DEBUG
...
no gst-debugging => no tracer logging (and no pony either)
2016-01-19 11:12:27 +01:00
Edward Hervey
128760f246
tracerrecord: Disable logging if GST_DISABLE_GST_DEBUG
...
Make the gst_tracer_record_log() a no-op if the gst-debug subsystem
is disabled.
2016-01-19 11:12:21 +01:00
Tim-Philipp Müller
eb4c5498b5
value: fail flag deserialization on invalid flag names
2016-01-18 19:39:11 +00:00
Tim-Philipp Müller
fb4b673c76
tests: structure: fix wrong flag name in deserialization test
...
There is no GST_SEEK_FLAGS_NONE only GST_SEEK_FLAG_NONE (but
the deserializer silently skips bad flag names currently).
2016-01-18 19:39:05 +00:00
Tim-Philipp Müller
8641d7c911
tracers: fix thread-id casts to 64-bit ints on 32-bit systems
...
https://bugzilla.gnome.org/show_bug.cgi?id=760762
2016-01-18 11:28:28 +00:00
Vineeth TM
843d120c2f
gst: ref/unref new enum types in gst_init/deinit
...
https://bugzilla.gnome.org/show_bug.cgi?id=760767
2016-01-18 09:11:00 +02:00
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