sm-commit AT lists.ibiblio.org
Subject: Source Mage code commit list
List archive
[SM-Commit] GIT changes to master grimoire by Alexander Tsamutali (e4ecedf6fd00bdec96cae2fe015b0bad7ed17689)
- From: Alexander Tsamutali <scm AT sourcemage.org>
- To: sm-commit AT lists.ibiblio.org
- Subject: [SM-Commit] GIT changes to master grimoire by Alexander Tsamutali (e4ecedf6fd00bdec96cae2fe015b0bad7ed17689)
- Date: Sun, 29 Apr 2007 11:18:02 -0500
GIT changes to master grimoire by Alexander Tsamutali <astsmtl AT gmail.com>:
video-libs/gstreamer/DETAILS | 1
video-libs/gstreamer/HISTORY | 5 ++
video-libs/gstreamer/PRE_BUILD | 3 +
video-libs/gstreamer/filesrc_no_location.patch | 61
+++++++++++++++++++++++++
4 files changed, 70 insertions(+)
New commits:
commit e4ecedf6fd00bdec96cae2fe015b0bad7ed17689
Author: Alexander Tsamutali <astsmtl AT gmail.com>
Commit: Alexander Tsamutali <astsmtl AT gmail.com>
video-libs/gstreamer, added upstream patch to fix "filesrc element" bug
diff --git a/video-libs/gstreamer/DETAILS b/video-libs/gstreamer/DETAILS
index 236a60a..b18383a 100755
--- a/video-libs/gstreamer/DETAILS
+++ b/video-libs/gstreamer/DETAILS
@@ -1,5 +1,6 @@
SPELL=gstreamer
VERSION=0.10.12
+ PATCHLEVEL=1
SOURCE=$SPELL-$VERSION.tar.bz2
SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL-$VERSION
SOURCE_URL[0]=http://gstreamer.freedesktop.org/src/gstreamer/$SOURCE
diff --git a/video-libs/gstreamer/HISTORY b/video-libs/gstreamer/HISTORY
index 5053f46..5c3ebbd 100644
--- a/video-libs/gstreamer/HISTORY
+++ b/video-libs/gstreamer/HISTORY
@@ -1,3 +1,8 @@
+2007-04-29 Alexander Tsamutali <astsmtl AT gmail.com>
+ * DETAILS: PATCHLEVEL++
+ * PRE_BUILD, filesrc_no_location.patch: Added upstream patch
+ to fix "filesrc element" bug
+
2007-03-08 Arwed v. Merkatz <v.merkatz AT gmx.net>
* DETAILS: updated to 0.10.12
diff --git a/video-libs/gstreamer/PRE_BUILD b/video-libs/gstreamer/PRE_BUILD
new file mode 100755
index 0000000..9f6131d
--- /dev/null
+++ b/video-libs/gstreamer/PRE_BUILD
@@ -0,0 +1,3 @@
+default_pre_build &&
+cd $SOURCE_DIRECTORY &&
+patch -p0 < $SCRIPT_DIRECTORY/filesrc_no_location.patch
diff --git a/video-libs/gstreamer/filesrc_no_location.patch
b/video-libs/gstreamer/filesrc_no_location.patch
new file mode 100644
index 0000000..46f7e7f
--- /dev/null
+++ b/video-libs/gstreamer/filesrc_no_location.patch
@@ -0,0 +1,61 @@
+--- plugins/elements/gstfilesrc.c 2007/02/13 13:40:05 1.150
++++ plugins/elements/gstfilesrc.c 2007/04/27 07:34:10 1.152
+@@ -1074,14 +1074,21 @@
+ * "location" with uri + 16 because it provides unescaping */
+ location = gst_uri_get_location (tmp);
+ g_free (tmp);
++ } else if (strcmp (uri, "file://") == 0) {
++ /* Special case for "file://" as this is used by some applications
++ * to test with gst_element_make_from_uri if there's an element
++ * that supports the URI protocol. */
++ gst_file_src_set_location (src, NULL);
++ return TRUE;
+ } else {
+ location = gst_uri_get_location (uri);
+- if (!location)
+- return FALSE;
+- if (!g_path_is_absolute (location)) {
+- g_free (location);
+- return FALSE;
+- }
++ }
++
++ if (!location)
++ return FALSE;
++ if (!g_path_is_absolute (location)) {
++ g_free (location);
++ return FALSE;
+ }
+
+ ret = gst_file_src_set_location (src, location);
+
+--- plugins/elements/gstfilesink.c 2007/02/13 13:40:05 1.84
++++ plugins/elements/gstfilesink.c 2007/04/27 07:34:10 1.86
+@@ -554,14 +554,21 @@
+ * "location" with uri + 16 because it provides unescaping */
+ location = gst_uri_get_location (tmp);
+ g_free (tmp);
++ } else if (strcmp (uri, "file://") == 0) {
++ /* Special case for "file://" as this is used by some applications
++ * to test with gst_element_make_from_uri if there's an element
++ * that supports the URI protocol. */
++ gst_file_sink_set_location (sink, NULL);
++ return TRUE;
+ } else {
+ location = gst_uri_get_location (uri);
+- if (!location)
+- return FALSE;
+- if (!g_path_is_absolute (location)) {
+- g_free (location);
+- return FALSE;
+- }
++ }
++
++ if (!location)
++ return FALSE;
++ if (!g_path_is_absolute (location)) {
++ g_free (location);
++ return FALSE;
+ }
+
+ ret = gst_file_sink_set_location (sink, location);
- [SM-Commit] GIT changes to master grimoire by Alexander Tsamutali (e4ecedf6fd00bdec96cae2fe015b0bad7ed17689), Alexander Tsamutali, 04/29/2007
Archive powered by MHonArc 2.6.24.