From 426889778db0c32dcc0df928023f9a6075378207 Mon Sep 17 00:00:00 2001
From: Warren Dukes <warren.dukes@gmail.com>
Date: Thu, 20 May 2004 04:47:15 +0000
Subject: when playing a url, previous always goto to previous song and never
 to the beginning of the stream!

git-svn-id: https://svn.musicpd.org/mpd/trunk@1110 09075e82-0dd4-0310-85a5-a0d7c8717e4f
---
 src/playlist.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'src')

diff --git a/src/playlist.c b/src/playlist.c
index 60b40f4f9..8d145c314 100644
--- a/src/playlist.c
+++ b/src/playlist.c
@@ -954,7 +954,10 @@ int previousSongInPlaylist(FILE * fp) {
 
 	syncPlaylistWithQueue(0);
 
-   	if (getPlayerElapsedTime()>PLAYLIST_PREV_UNLESS_ELAPSED) {
+   	if (getPlayerElapsedTime()>PLAYLIST_PREV_UNLESS_ELAPSED &&
+                        playlist.songs[playlist.order[playlist.current]]->type
+                        != SONG_TYPE_URL) 
+        {
 		return playPlaylistOrderNumber(fp,playlist.current);
    	}
    	else {
-- 
cgit v1.2.3