Bug fix when trying to restart single song in playlist

cur_streaming may be null, so can't address cur_streaming->ctx
This commit is contained in:
ejurgensen 2013-09-25 20:14:13 +02:00
parent 43ed5ef7ba
commit 9704a1e65d

View File

@ -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);