From 5df0ca04360c44e00f4734cf7c0b26c9e6bedf80 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Wed, 30 Dec 2015 10:10:12 +0100 Subject: Fix two issues seen by static analysis --- src/JackInput.cpp | 2 ++ src/VLCInput.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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(); } -- cgit v1.2.3