* gstreamer.py:
Add quoteParse() method.
This commit is contained in:
5
morituri/extern/task/ChangeLog
vendored
5
morituri/extern/task/ChangeLog
vendored
@@ -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:
|
||||
|
||||
10
morituri/extern/task/gstreamer.py
vendored
10
morituri/extern/task/gstreamer.py
vendored
@@ -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, )
|
||||
|
||||
Reference in New Issue
Block a user