summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-11-01tests: fixes after pad caps query cache additioncaps-cacheThiago Santos2-8/+9
The caps query cache adds a new ref to the caps and some tests were checking the caps refcount Also push reconfigure for selector tests to force cache cleanup
2015-11-01pad: only enable caps query cache for sink padsThiago Santos1-0/+2
Source pads are less used in caps queries and it is unusual to have to notificate downstream that upstream can now support a new format. Upstream, in this case, just starts negotiating again. Besides, the reconfigure event is uptstream only.
2015-11-01capsquerycache: add a few logsThiago Santos1-3/+9
2015-11-01pad: add the caps query cacheThiago Santos3-12/+86
Will cache the results of a caps query until the pad is flushed, deactivated or a reconfigure event is seen. This is an attempt to quickly reply to the same caps queries that are common when pipeline is starting up
2015-11-01outputselector: push reconfigure when active pad changesThiago Santos1-0/+1
2015-11-01capsquerycache: implement cacheingThiago Santos3-2/+184
Cache the results for NULL and the last filter used, those should cover the majority of cases a pad has to reply to a caps query
2015-11-01capsquerycache: new gstminiobject to do caching of caps queriesThiago Santos6-0/+186
It should provide a caps->caps mapping, allowing cache of caps queries by mapping filter->result.
2015-10-29element: emit tracer's element-new hook from 'constructed'Thiago Santos2-2/+9
It allows to properly emitting it for all newly created elements https://bugzilla.gnome.org/show_bug.cgi?id=757045
2015-10-29stats: log the element-new hook properlyThiago Santos1-5/+28
To be able to get the time the elements were created instead of just logging them without a time
2015-10-29pad: Unblock blocking pad probes when receiving FLUSH_START in send_event() tooSebastian Dröge1-0/+2
Without this, flushing might not unblock the streaming thread and cause deadlocks. https://bugzilla.gnome.org/show_bug.cgi?id=757257
2015-10-28pad: Document the order in which pad probes are calledSebastian Dröge1-0/+7
https://bugzilla.gnome.org/show_bug.cgi?id=757197
2015-10-28pad: Append hooks instead of prepending to call them in the order they were ↵Sebastian Dröge1-1/+1
added https://bugzilla.gnome.org/show_bug.cgi?id=757197
2015-10-27netaddressmeta: gst_buffer_get_net_address_meta() as functionStian Selnes3-3/+18
Implement gst_buffer_get_net_address_meta() as a function instead of a macro in order to get gobject-introspection to work. https://bugzilla.gnome.org/show_bug.cgi?id=702921
2015-10-27buffer: flesh out docs for gst_buffer_make_writable() a littleNirbheek Chauhan1-3/+18
There is a similar explanation in gst_caps_make_writable, but the existing documentation can be misleading since it does not define what 'is already writable' means. Also note when this function is meant to be used.
2015-10-27caps: clarify docs for a few functions that they don't update things in-placeNirbheek Chauhan1-1/+15
It is not necessarily clear from the existing introspection tags and documentation alone.
2015-10-27queue/queue2: Use GST_BUFFER_DTS_OR_PTSEdward Hervey2-12/+17
The input of queue/queue2 might have DTS set, in which cas we want to take that into account (instead of the PTS) to calculate position and queue levels. https://bugzilla.gnome.org/show_bug.cgi?id=756507
2015-10-27multiqueue: Use buffer DTS if present, else PTSEdward Hervey1-13/+14
In order to accurately determine the amount (in time) of data travelling in queues, we should use an increasing value. If buffers are encoded and potentially reordered, we should be using their DTS (increasing) and not PTS (reordered) https://bugzilla.gnome.org/show_bug.cgi?id=756507
2015-10-27collectpads: Use GST_BUFFER_DTS_OR_PTSEdward Hervey1-7/+2
Simplifies code a bit
2015-10-27buffer: Add a GST_BUFFER_DTS_OR_PTS macroEdward Hervey2-0/+9
API: GST_BUFFER_DTS_OR_PTS Many scenarios/elements require dealing with streams of buffers that might have DTS set (i.e. encoded data, potentially reordered) To simplify getting the increasing "timestamp" of those buffers, create a macro that will return the DTS if valid, and if not the PTS
2015-10-26doc: add GST_{PTR,SEGMENT}_FORMATGuillaume Desmottes1-2/+2
Very useful formats in debug output so best to have them in the generated doc. https://bugzilla.gnome.org/show_bug.cgi?id=756115
2015-10-26segment: Return -1 if gst_segment_to_stream_time_full() considers the ↵Sebastian Dröge1-1/+1
position not inside the segment Fixes GstPipeline unit test. https://bugzilla.gnome.org/show_bug.cgi?id=756564
2015-10-24uri: fix behaviour for merging uris ending in .. without following /Florin Apostol1-1/+6
https://bugzilla.gnome.org/show_bug.cgi?id=757065
2015-10-24uri: tests: added unit test for streams ending in .. without following /Florin Apostol1-0/+18
https://bugzilla.gnome.org/show_bug.cgi?id=757065
2015-10-24debug: Dump pad properties valuesThibault Saunier1-12/+30
Currently we only show element properties values, we should also show pad properties values https://bugzilla.gnome.org/show_bug.cgi?id=754166
2015-10-23segment: Remove leftover debug g_print()Sebastian Dröge1-6/+1
2015-10-23segment: Add _full variants of all stream/running_time from/to segment ↵Vivia Nikolaidou6-105/+482
position functions See formula clarifications in design docs for calculation details. https://bugzilla.gnome.org/show_bug.cgi?id=756564
2015-10-23gst-uninstalled: Added env var for uninstalled PTP helperVivia Nikolaidou1-0/+2
https://bugzilla.gnome.org/show_bug.cgi?id=755651
2015-10-22basesink: rename argument of PREROLL_{COND,LOCK} macrosGuillaume Desmottes1-12/+12
They take a GstBaseSink instance as argument at not a GstPad. Rename the argument to 'obj' which is not miss leading and in line with GST_BASE_SINK_PAD(obj). https://bugzilla.gnome.org/show_bug.cgi?id=756954
2015-10-22gstcontrolsource: Add missing (out) annotationMathieu Duponchelle1-1/+1
2015-10-21Automatic update of common submoduleTim-Philipp Müller1-0/+0
From b99800a to b319909
2015-10-21pad: Fix docs/annotation of gst_pad_probe_info_get_buffer_list()Sebastian Dröge1-1/+1
It's not get_bufferlist(). Because of that it was ignored by the docs and G-I, leading to crashes because of broken ownership transfer. https://bugzilla.gnome.org/show_bug.cgi?id=756898
2015-10-21Use new GST_ENABLE_EXTRA_CHECKS #defineSebastian Dröge3-3/+4
https://bugzilla.gnome.org/show_bug.cgi?id=756870
2015-10-21Automatic update of common submoduleSebastian Dröge2-1/+1
From 9aed1d7 to b99800a
2015-10-21stats: always free logLuis de Bethencourt1-1/+1
We always want to free the open file log if fopen() succeeded. Independently of if fgets() succeeds or fails. CID 1326055 https://bugzilla.gnome.org/show_bug.cgi?id=756864
2015-10-20segment: Correct stream_time calc for negative applied rateVivia Nikolaidou2-24/+115
Updated gst_segment_position_from_stream_time and gst_segment_to_stream_time to reflect correct calculations for the case when the applied rate is negative. Pasting from design docs: =============================== Stream time is calculated using the buffer times and the preceding SEGMENT event as follows: stream_time = (B.timestamp - S.start) * ABS (S.applied_rate) + S.time For negative rates, B.timestamp will go backwards from S.stop to S.start, making the stream time go backwards. =============================== Therefore, the calculation for applied_rate < 0 should be: stream_time = (S.stop - B.timestamp) * ABS (S.applied_rate) + S.time and the reverse: B.timestamp = S.stop - (stream_time - S.time) / ABS (S.applied_rate) https://bugzilla.gnome.org/show_bug.cgi?id=756810
2015-10-19tracer: rename the envvar to GST_TRACER_PLUGINSStefan Sauer3-11/+11
The subsystem reused the GST_TRACE var that is allready in use by the alloc tracer. Fixes #756760
2015-10-19multiqueue: Improve incoming SEGMENT handlingEdward Hervey1-1/+2
Previously this code was just blindly setting the cached flow return of downstream to GST_FLOW_OK when we get a SEGMENT. The problem is that this can not be done blindly. If downstream was not linked, the corresponding sinqlequeue source pad thread might be waiting for the next ID to be woken up upon. By blindly setting the cached return value to GST_FLOW_OK, and if that stream was the only one that was NOT_LINKED, then the next time we check (from any other thread) to see if we need to wake up a source pad thread ... we won't even try, because none of the cached flow return are equal to GST_FLOW_NOT_LINKED. This would result in that thread never being woken up https://bugzilla.gnome.org/show_bug.cgi?id=756645
2015-10-19gstutils: Fix build with clang -Werror=cast-alignTing-Wei Lan1-6/+6
https://bugzilla.gnome.org/show_bug.cgi?id=755657
2015-10-19bin: Make sure to free all cached messages when going to NULLSebastian Dröge1-0/+5
An ASYNC READY->PAUSED might have failed without the bin code noticing during the state change, in which case we will never get PAUSED->READY and would leak messages. https://bugzilla.gnome.org/show_bug.cgi?id=756611
2015-10-16docs: mention xdot utility to view .dot files directlyTim-Philipp Müller3-2/+10
2015-10-16alloctrace: show details of events and messages leakedTim-Philipp Müller1-0/+14
So it's clearer what leaked.
2015-10-16docs: manual: improve advanced metadata example a bitTim-Philipp Müller1-6/+19
Accept both filename and a URI as argument, and print the error from the error message if there's an error. https://bugzilla.gnome.org/show_bug.cgi?id=756630
2015-10-15memory: fix typo in documentationThiago Santos1-1/+1
It should be 1.2 unless this is a flag from the future
2015-10-15multiqueue: Accept STREAM_START after EOSEdward Hervey1-0/+4
In the same way core now allows STREAM_START to remove the flushing state from pads, we need to do the same thing in multiqueue
2015-10-14segment: Convert function to macro in unit test to get proper line numbers ↵Sebastian Dröge1-23/+20
on failures https://bugzilla.gnome.org/show_bug.cgi?id=748316
2015-10-12baseparse: Update internal position even if not linkedEdward Hervey1-2/+3
Our current position has nothing to do with being linked or not. Avoids having stray segment updates fired every 2s
2015-10-07pad: fix memory leak when sending events to an EOS padFlorin Apostol1-0/+1
https://bugzilla.gnome.org/show_bug.cgi?id=756208
2015-10-07tracers: Only link against libgstprintf.la if the debugging system is enabledSebastian Dröge1-1/+3
It does not exist otherwise and linking will fail.
2015-10-07gst-ptp-helper: #include <sys/socket.h> to fix net/if.h include on OSX 10.6Sebastian Dröge1-0/+1
In file included from gst-ptp-helper.c:40:0: /usr/include/net/if.h:265:19: error: field 'ifru_addr' has incomplete type struct sockaddr ifru_addr; https://bugzilla.gnome.org/show_bug.cgi?id=756136
2015-10-07Revert "tracers: Only build getrusage() tracer if RUSAGE_THREAD is available"Stefan Sauer4-20/+5
This reverts commit 8ddbf76626a48420306869db1d171f854cc25310.