[SCM] morituri/master: * gstreamer.py: Add quoteParse() method.

js at users.alioth.debian.org js at users.alioth.debian.org
Sun Oct 19 20:09:32 UTC 2014


The following commit has been merged in the master branch:
commit 95cd741904dd9072977f1dffcf988974f4a2d59a
Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
Date:   Fri Aug 5 19:16:40 2011 +0000

    	* gstreamer.py:
    	  Add quoteParse() method.

diff --git a/morituri/extern/task/ChangeLog b/morituri/extern/task/ChangeLog
index bdade9d..907a2bf 100644
--- a/morituri/extern/task/ChangeLog
+++ b/morituri/extern/task/ChangeLog
@@ -1,6 +1,11 @@
 2011-08-05  Thomas Vander Stichele  <thomas at apestaart dot org>
 
 	* gstreamer.py:
+	  Add quoteParse() method.
+
+2011-08-05  Thomas Vander Stichele  <thomas at apestaart dot org>
+
+	* gstreamer.py:
 	  Add getPipeline() method.
 	  Base class implementation uses getPipelineDesc().
 
diff --git a/morituri/extern/task/gstreamer.py b/morituri/extern/task/gstreamer.py
index 91e69ec..98486a6 100644
--- a/morituri/extern/task/gstreamer.py
+++ b/morituri/extern/task/gstreamer.py
@@ -22,6 +22,16 @@
 
 import task
 
+def quoteParse(path):
+    """
+    Quote a path for use in gst.parse_launch.
+    """
+    # Make sure double quotes are escaped.  See
+    # morituri.test.test_common_checksum
+
+    return path.replace('"', '\\"')
+
+
 class GstException(Exception):
     def __init__(self, gerror, debug):
         self.args = (gerror, debug, )

-- 
morituri packaging



More information about the pkg-multimedia-commits mailing list