diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2010-03-23 22:29:32 +0100 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2010-03-23 22:29:32 +0100 |
commit | 8898269bcdbc8dac0306c6ebbc07bccc8b21fa87 (patch) | |
tree | f49687d93187322d769511885c84dbf1c4561302 /streamer.c | |
parent | 4c5fd68b06ae45ef89c8d66297f09f0781c778b9 (diff) |
fixed crash after opening single file twice using file->open menu
Diffstat (limited to 'streamer.c')
-rw-r--r-- | streamer.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -437,8 +437,10 @@ streamer_set_current (playItem_t *it) { if (fileinfo) { fileinfo->plugin->free (fileinfo); fileinfo = NULL; - pl_item_unref (streaming_track); - streaming_track = NULL; + if (streaming_track) { + pl_item_unref (streaming_track); + streaming_track = NULL; + } } mutex_unlock (decodemutex); if (!it) { |