gstreamer/win32/common
Thiago Santos 581c4297d0 dataqueue: add gst_data_queue_push_force
Adds a variant of the _push function that doesn't check the queue limits
before adding the new item. It is useful when pushing an element to the
queue shouldn't lock the thread.

One particular scenario is when the queue is used to serialize buffers
and events that are going to be pushed from another thread. The
dataqueue should have a limit on the amount of buffers to be stored to
avoid large memory consumption, but events can be considered to have
negligible impact on memory compared to buffers. So it is useful to be
used to push items into the queue that contain events, even though the
queue is already full, it shouldn't matter inserting an item that has
no significative size.

This scenario happens on adaptive elements (dashdemux / mssdemux) as
there is a single download thread fetching buffers and putting into the
dataqueues for the streams. This same download thread can als generate
events in some situations as caps changes, eos or a internal control
events. There can be a deadlock at preroll if the first buffer fetched
is large enough to fill the dataqueue and the download thread and the
next iteration of the download thread decides to push an event to this
same dataqueue before fetching buffers to other streams, if this push
locks, the pipeline will be stuck in preroll as no more buffers will be
downloaded.
There is a somewhat common practice in dash streams to have a single
very large buffer for audio and one for video, so this will always
happen as the download thread will have to push an EOS right after
fetching the first buffer for any stream.

API: gst_data_queue_push_force

https://bugzilla.gnome.org/show_bug.cgi?id=705694
2013-08-13 12:00:48 -03:00
..
config.h Release 1.1.3 2013-07-29 13:34:53 +02:00
dirent.c Fix a couple of missing includes for MSVC2005 and a C99 issue. Also, starting with 2.14.0, GLib won't provide a pipe(... 2007-10-31 22:01:03 +00:00
dirent.h win32/vs7: project files updated to the default vs7 configuration 2006-02-06 21:29:04 +00:00
gstconfig.h Fix FSF address 2012-11-03 20:44:48 +00:00
gstenumtypes.c Release 1.1.3 2013-07-29 13:34:53 +02:00
gstenumtypes.h Release 1.1.3 2013-07-29 13:34:53 +02:00
gstversion.h Release 1.1.3 2013-07-29 13:34:53 +02:00
gtchar.h win32/vs7: project files updated to the default vs7 configuration 2006-02-06 21:29:04 +00:00
libgstbase.def dataqueue: add gst_data_queue_push_force 2013-08-13 12:00:48 -03:00
libgstcontroller.def controller: rename control-bindings 2012-01-30 21:18:57 +01:00
libgstdataprotocol.def defs: update defs 2010-12-07 18:33:51 +01:00
libgstnet.def win32: Fix exported symbols list for real now 2012-07-11 13:14:57 +02:00
libgstreamer.def query: add Since markers for new API and add to exports file 2013-08-13 12:11:19 +01:00