diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-03-29 16:29:20 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-03-29 16:29:20 +0200 |
commit | 2cf75c9364300274bcb131d2a6adf50eab12831d (patch) | |
tree | 1ad2765fd045b13f907ced3ab5f040bf82ecc5c6 /toolame.c | |
parent | 8861236aa6ced1e0a5ff67e739ad8130d5093e10 (diff) | |
download | toolame-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.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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"); |