diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-12-30 10:10:12 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-12-30 10:10:12 +0100 |
commit | 5df0ca04360c44e00f4734cf7c0b26c9e6bedf80 (patch) | |
tree | b4a94f28bb47fe403141adab1626892ccf631545 /src | |
parent | 1db12b7f6ae74888703dfcaece93df1b8f40d30f (diff) | |
download | fdk-aac-5df0ca04360c44e00f4734cf7c0b26c9e6bedf80.tar.gz fdk-aac-5df0ca04360c44e00f4734cf7c0b26c9e6bedf80.tar.bz2 fdk-aac-5df0ca04360c44e00f4734cf7c0b26c9e6bedf80.zip |
Fix two issues seen by static analysis
Diffstat (limited to 'src')
-rw-r--r-- | src/JackInput.cpp | 2 | ||||
-rw-r--r-- | src/VLCInput.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/JackInput.cpp b/src/JackInput.cpp index 0d2204a..51de6e4 100644 --- a/src/JackInput.cpp +++ b/src/JackInput.cpp @@ -98,6 +98,8 @@ int JackInput::prepare() fprintf (stderr, "JACK: cannot activate client"); return -1; } + + return 0; } void JackInput::jack_process(jack_nframes_t nframes) diff --git a/src/VLCInput.cpp b/src/VLCInput.cpp index 00d5fa4..dde9a7b 100644 --- a/src/VLCInput.cpp +++ b/src/VLCInput.cpp @@ -220,7 +220,7 @@ void VLCInput::exit_cb() fprintf(stderr, "VLC exit, restarting...\n"); cleanup(); - m_current_buf.empty(); + m_current_buf.clear(); prepare(); } |