aboutsummaryrefslogtreecommitdiffstats
path: root/toolame.c
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-03-29 16:29:20 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-03-29 16:29:20 +0200
commit2cf75c9364300274bcb131d2a6adf50eab12831d (patch)
tree1ad2765fd045b13f907ced3ab5f040bf82ecc5c6 /toolame.c
parent8861236aa6ced1e0a5ff67e739ad8130d5093e10 (diff)
downloadtoolame-dab-2cf75c9364300274bcb131d2a6adf50eab12831d.tar.gz
toolame-dab-2cf75c9364300274bcb131d2a6adf50eab12831d.tar.bz2
toolame-dab-2cf75c9364300274bcb131d2a6adf50eab12831d.zip
Fix vlc input error handling
Diffstat (limited to 'toolame.c')
-rw-r--r--toolame.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/toolame.c b/toolame.c
index 2ddb7f3..51cf1e1 100644
--- a/toolame.c
+++ b/toolame.c
@@ -1060,7 +1060,10 @@ void parse_args (int argc, char **argv, frame_info * frame, int *psy,
exit (1);
}
*num_samples = MAX_U_32_NUM;
- vlc_in_prepare(glopts.verbosity, samplerate, inPath);
+ if (vlc_in_prepare(glopts.verbosity, samplerate, inPath) != 0) {
+ fprintf(stderr, "VLC initialisation failed\n");
+ exit(1);
+ }
}
else {
fprintf(stderr, "INVALID INPUT\n");