platform/upstream/gstreamer.git
9 years agoRevert "dataurisrc: Remove unnecessary else if condition"
Thiago Santos [Sun, 7 Sep 2014 04:30:16 +0000 (01:30 -0300)]
Revert "dataurisrc: Remove unnecessary else if condition"

This reverts commit 3024ae9c38490817a76c83feab3c8472989cafad.

The *buf can be NULL or not depending if the caller of gst_pad_get_range
function provided or not a buffer.

9 years agodataurisrc: Remove unnecessary else if condition
Vineeth T M [Thu, 4 Sep 2014 08:08:21 +0000 (13:38 +0530)]
dataurisrc: Remove unnecessary else if condition

In gst_data_uri_src_create(), buf cannot be NULL, hence
else if (*buf != NULL) will be invalid so removing the
else if condition and adding a check to unreference buf
in else condition, just in case

https://bugzilla.gnome.org/show_bug.cgi?id=735861

9 years agodataurisrc: Make get_uri() threadsafe
Vineeth T M [Tue, 2 Sep 2014 06:41:44 +0000 (12:11 +0530)]
dataurisrc: Make get_uri() threadsafe

https://bugzilla.gnome.org/show_bug.cgi?id=735861

10 years agodataurisrc: fix leak as gst_buffer_replace adds its own ref
Thiago Santos [Sat, 28 Jun 2014 12:35:21 +0000 (09:35 -0300)]
dataurisrc: fix leak as gst_buffer_replace adds its own ref

So unref the buffer after that otherwise it leaks

11 years agoFix FSF address
Tim-Philipp Müller [Sat, 3 Nov 2012 20:38:00 +0000 (20:38 +0000)]
Fix FSF address

https://bugzilla.gnome.org/show_bug.cgi?id=687520

11 years agoUse gst_element_class_set_static_metadata()
Tim-Philipp Müller [Wed, 17 Oct 2012 16:34:26 +0000 (17:34 +0100)]
Use gst_element_class_set_static_metadata()

where possible. Avoids some string copies. Also re-indent
some stuff. Also some indent fixes here and there.

11 years agoreplace some playbin2 -> playbin
Wim Taymans [Wed, 10 Oct 2012 12:11:43 +0000 (14:11 +0200)]
replace some playbin2 -> playbin

11 years agoreplace gst_element_class_set_details_simple with gst_element_class_set_metadata
Mark Nauwelaerts [Fri, 14 Sep 2012 15:08:49 +0000 (17:08 +0200)]
replace gst_element_class_set_details_simple with gst_element_class_set_metadata

12 years agodataurisrc: copy into provided buffer if a buffer is provided
Tim-Philipp Müller [Mon, 9 Jul 2012 23:59:40 +0000 (00:59 +0100)]
dataurisrc: copy into provided buffer if a buffer is provided

12 years agogst: Update for GST_PLUGIN_DEFINE() API changes
Sebastian Dröge [Thu, 5 Apr 2012 16:02:56 +0000 (18:02 +0200)]
gst: Update for GST_PLUGIN_DEFINE() API changes

12 years agodataurisrc: fix docs and unit test
Wim Taymans [Fri, 24 Feb 2012 11:53:52 +0000 (12:53 +0100)]
dataurisrc: fix docs and unit test

12 years agoGST_FLOW_UNEXPECTED -> GST_FLOW_EOS
Wim Taymans [Tue, 3 Jan 2012 14:26:54 +0000 (15:26 +0100)]
GST_FLOW_UNEXPECTED -> GST_FLOW_EOS

12 years agoMerge commit '7521b597f4dc49d8d168f368f0e7ebaf98a72156' into 0.11
Tim-Philipp Müller [Mon, 28 Nov 2011 23:20:32 +0000 (23:20 +0000)]
Merge commit '7521b597f4dc49d8d168f368f0e7ebaf98a72156' into 0.11

12 years agovarious: fix pad template ref leaks
Vincent Penquerc'h [Mon, 28 Nov 2011 13:08:27 +0000 (13:08 +0000)]
various: fix pad template ref leaks

https://bugzilla.gnome.org/show_bug.cgi?id=662664

12 years agoUpdate for GstURIHandler get_protocols() changes
Tim-Philipp Müller [Sun, 13 Nov 2011 23:55:56 +0000 (23:55 +0000)]
Update for GstURIHandler get_protocols() changes

12 years agomake elements compile again
Wim Taymans [Fri, 28 Oct 2011 13:16:43 +0000 (15:16 +0200)]
make elements compile again

12 years agodataurisrc: port to 0.11
Wim Taymans [Tue, 4 Oct 2011 16:38:50 +0000 (18:38 +0200)]
dataurisrc: port to 0.11

13 years agodataurisrc: use g_ascii_strcasecmp()
David Schleef [Fri, 31 Dec 2010 02:02:06 +0000 (18:02 -0800)]
dataurisrc: use g_ascii_strcasecmp()

14 years agoAdd -Wwrite-strings
Benjamin Otte [Mon, 22 Mar 2010 12:16:33 +0000 (13:16 +0100)]
Add -Wwrite-strings

and fix its warnings

14 years agotests: add unit test for dataurisrc
Tim-Philipp Müller [Sat, 13 Feb 2010 15:28:39 +0000 (15:28 +0000)]
tests: add unit test for dataurisrc

Requires fixes from core git, so bump core requirement to git as well.

14 years agodataurisrc: add start function so we can error out properly if no uri is set
Tim-Philipp Müller [Thu, 28 Jan 2010 00:07:14 +0000 (00:07 +0000)]
dataurisrc: add start function so we can error out properly if no uri is set

Also save a set URI after it has been parsed successfully, so that _get_uri()
actually works.

14 years agodataurisrc: don't post error message when setting the URI failed
Tim-Philipp Müller [Wed, 27 Jan 2010 23:46:32 +0000 (23:46 +0000)]
dataurisrc: don't post error message when setting the URI failed

There's a gboolean return for that, and the messages don't really
add anything useful.

14 years agodataurisrc: must release the object lock before using GST_ELEMENT_ERROR
Tim-Philipp Müller [Wed, 27 Jan 2010 23:39:14 +0000 (23:39 +0000)]
dataurisrc: must release the object lock before using GST_ELEMENT_ERROR

14 years agodataurisrc: Remove role attribute from links
Sebastian Dröge [Mon, 25 Jan 2010 11:12:32 +0000 (12:12 +0100)]
dataurisrc: Remove role attribute from links

14 years agodataurisrc: Add docs and integrate into build system
Sebastian Dröge [Mon, 25 Jan 2010 10:56:33 +0000 (11:56 +0100)]
dataurisrc: Add docs and integrate into build system

Fixes again bug #596885.

14 years agodataurisrc: Add data: URI source element
Sebastian Dröge [Mon, 25 Jan 2010 10:12:47 +0000 (11:12 +0100)]
dataurisrc: Add data: URI source element

This is slightly based on the WebKit data: URI source
but supports more parts of RFC 2397.

Fixes bug #596885.