diff options
author | Michał Cichoń <michcic@gmail.com> | 2015-08-25 18:29:42 +0200 |
---|---|---|
committer | Michał Cichoń <michcic@gmail.com> | 2015-08-25 18:29:42 +0200 |
commit | b9d69f88437ece15e6662fc6091c69e9a9aa0ede (patch) | |
tree | f56e0186e31ed383802eeec35973dfbe3ab703fb | |
parent | 1e7c49969628dcd42d937d194359d11fc74ee650 (diff) | |
download | pianobar-windows-b9d69f88437ece15e6662fc6091c69e9a9aa0ede.tar.gz pianobar-windows-b9d69f88437ece15e6662fc6091c69e9a9aa0ede.tar.bz2 pianobar-windows-b9d69f88437ece15e6662fc6091c69e9a9aa0ede.zip |
Finish playback to prevent echo of previous song when opening new stream.
-rw-r--r-- | src/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -225,8 +225,9 @@ static void BarMainStartPlayback (BarApp_t *app) { strncmp (curSong->audioUrl, httpPrefix, strlen (httpPrefix)) != 0) { BarUiMsg (&app->settings, MSG_ERR, "Invalid song url.\n"); } else { - BarPlayer2Open(app->player, curSong->audioUrl); + BarPlayer2Finish(app->player); BarPlayer2SetGain(app->player, curSong->fileGain); + BarPlayer2Open(app->player, curSong->audioUrl); /* throw event */ BarUiStartEventCmd (&app->settings, "songstart", |