projects
/
ffpreview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d8c3db
)
* Fixed default return values in proc_cmd().
master
author
Urban Wallasch
<urban.wallasch@freenet.de>
Tue, 1 Jun 2021 14:15:40 +0000
(16:15 +0200)
committer
Urban Wallasch
<urban.wallasch@freenet.de>
Tue, 1 Jun 2021 14:15:40 +0000
(16:15 +0200)
ffpreview.py
patch
|
blob
|
history
diff --git
a/ffpreview.py
b/ffpreview.py
index 5aa4d03492095801452294aee0dd3b014034164b..acecb3ee4b0cfdd13eb68e0c99149e6fc2122ca5 100755
(executable)
--- a/
ffpreview.py
+++ b/
ffpreview.py
@@
-9,7
+9,7
@@
FFpreview is distributed under the Modified ("3-clause") BSD License.
See `LICENSE` file for more information.
"""
-_FFPREVIEW_VERSION = '0.4'
+_FFPREVIEW_VERSION = '0.4
+
'
_FFPREVIEW_NAME = 'FFpreview'
@@
-1846,7
+1846,8
@@
def proc_cmd(cmd):
if proc_running():
return '', '', None
global proc
- retval = 0
+ retval = -1
+ stdout = stderr = ''
try:
eprint(1, 'run:', cmd)
proc = Popen(cmd, shell=False, stdout=PIPE, stderr=PIPE, env=cfg['env'])