diff options
author | waker <wakeroid@gmail.com> | 2011-04-26 19:46:35 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2011-04-26 19:46:35 +0200 |
commit | 57a1819e516bd79e475e18a9f7152bdfdfc0277b (patch) | |
tree | a6a3b4b9cf09811fef02a2bd1ff843b2230fd345 /streamer.c | |
parent | f42394f745a8a8ec7f8293f92821f591eddd9d12 (diff) |
fixed aborting http streams during init
Diffstat (limited to 'streamer.c')
-rw-r--r-- | streamer.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -104,6 +104,7 @@ static ddb_waveformat_t output_format; static int formatchanged; static DB_fileinfo_t *fileinfo; +static DB_fileinfo_t *new_fileinfo; static int streamer_buffering; @@ -125,6 +126,9 @@ streamer_abort_files (void) { if (fileinfo && fileinfo->file) { deadbeef->fabort (fileinfo->file); } + if (new_fileinfo && new_fileinfo->file) { + deadbeef->fabort (new_fileinfo->file); + } if (streamer_file) { deadbeef->fabort (streamer_file); } @@ -570,7 +574,6 @@ streamer_set_current (playItem_t *it) { DB_output_t *output = plug_get_output (); int err = 0; int send_songstarted = 0; - DB_fileinfo_t *new_fileinfo = NULL; playItem_t *from, *to; // need to add refs here, because streamer_start_playback can destroy items from = playing_track; @@ -749,6 +752,7 @@ success: fileinfo = NULL; } fileinfo = new_fileinfo; + new_fileinfo = NULL; } mutex_unlock (decodemutex); if (send_songstarted && playing_track) { |