summaryrefslogtreecommitdiff
path: root/src/flufigut.py
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2012-10-16 17:34:40 +0200
committerChristian Pointner <equinox@spreadspace.org>2012-10-16 17:34:40 +0200
commitf4aeb1940c336d03252657677f3f812fce5f9463 (patch)
treec03576786ca7d27826021de4cbd690267c2c5c65 /src/flufigut.py
parentadded help text to flufigut manage script (diff)
small fix for audio only stream
Diffstat (limited to 'src/flufigut.py')
-rwxr-xr-xsrc/flufigut.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/flufigut.py b/src/flufigut.py
index b1e04af..1c0e538 100755
--- a/src/flufigut.py
+++ b/src/flufigut.py
@@ -105,12 +105,13 @@ for format in transcode.keys():
if input['samplerate'] != samplerate:
samplerates.append(samplerate)
for profile in transcode[format]:
- resolution = globals['profiles'][profile]['video']
- if resolution not in resolutions:
- if input['resolution'] != resolution:
- if globals['resolutions'][resolution]['rate'] != globals['resolutions'][input['resolution']]['rate']:
- raise SystemExit("ERROR: video rate conversion is not yet supported!!!")
- resolutions.append(resolution)
+ if 'video' in globals['profiles'][profile]:
+ resolution = globals['profiles'][profile]['video']
+ if resolution not in resolutions:
+ if input['resolution'] != resolution:
+ if globals['resolutions'][resolution]['rate'] != globals['resolutions'][input['resolution']]['rate']:
+ raise SystemExit("ERROR: video rate conversion is not yet supported!!!")
+ resolutions.append(resolution)
for resolution in resolutions:
if 'resize' not in worker: