aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-12-30 10:10:12 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-12-30 10:10:12 +0100
commit5df0ca04360c44e00f4734cf7c0b26c9e6bedf80 (patch)
treeb4a94f28bb47fe403141adab1626892ccf631545
parent1db12b7f6ae74888703dfcaece93df1b8f40d30f (diff)
downloadODR-AudioEnc-5df0ca04360c44e00f4734cf7c0b26c9e6bedf80.tar.gz
ODR-AudioEnc-5df0ca04360c44e00f4734cf7c0b26c9e6bedf80.tar.bz2
ODR-AudioEnc-5df0ca04360c44e00f4734cf7c0b26c9e6bedf80.zip
Fix two issues seen by static analysis
-rw-r--r--src/JackInput.cpp2
-rw-r--r--src/VLCInput.cpp2
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();
}