From 9704a1e65d9698c00f8323b0634eecc0fedd0bc2 Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Wed, 25 Sep 2013 20:14:13 +0200 Subject: [PATCH] Bug fix when trying to restart single song in playlist cur_streaming may be null, so can't address cur_streaming->ctx --- src/player.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/player.c b/src/player.c index a455ef87..aaf967a1 100644 --- a/src/player.c +++ b/src/player.c @@ -908,6 +908,9 @@ source_next(int force) switch (r_mode) { case REPEAT_SONG: + if (!cur_streaming) + break; + if (cur_streaming->ctx) { ret = transcode_seek(cur_streaming->ctx, 0);