gstreamer/gst-libs/gst/uridownloader
Carlos Garcia Campos 429353337d uridownloader: Take the ownership of the src element
The URI downloader is creating the source element with
gst_element_factory_make() that returns a floating reference that nobody
is consuming. This is causing problems in WebKit, where the smart
pointers used to take references of the source elment get confused and
end up consuming the floating reference and then releasing the element,
which usually crashes because the URI downloader still tries to use its
src element. See https://bugs.webkit.org/show_bug.cgi?id=144040.
This commit adds two helper functions to ensure and destroy the source
element, to make the code simpler and less error prone. The ensure
method takes care of checking if we can reuse the existing one or we
need to create a new one, taking always its ownership. The destroy
method simply avoids duplicated code to set the source to NULL state and
then unref it.

https://bugzilla.gnome.org/show_bug.cgi?id=766053
2016-05-06 15:26:59 +02:00
..
gstfragment.c dashdemux: add support for HTTP HEAD method of time sync 2015-08-14 06:47:21 -03:00
gstfragment.h dashdemux: add support for HTTP HEAD method of time sync 2015-08-14 06:47:21 -03:00
gsturidownloader.c uridownloader: Take the ownership of the src element 2016-05-06 15:26:59 +02:00
gsturidownloader.h libs:uridownloader: Properly declare APIs as UNSTABLE 2014-06-21 17:02:50 +02:00
gsturidownloader_debug.h uridownloader: refactor gsturidownloader to its own lib 2013-05-07 20:02:41 -03:00
Makefile.am Remove obsolete Android build cruft 2015-04-26 18:59:32 +01:00