* gstreamer.py:

Add quoteParse() method.
This commit is contained in:
Thomas Vander Stichele
2011-08-05 19:16:40 +00:00
parent 7ae0f41457
commit 95cd741904
2 changed files with 15 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
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:

View File

@@ -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, )