summaryrefslogtreecommitdiff
path: root/community/xfmedia/xfmedia-empty-prev-next-fix.patch
blob: e2d0d81668cd04a2019c22f18608160963b02d3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
diff -wbBur xfmedia-0.9.2/src/mainwin.c xfmedia-0.9.2.my/src/mainwin.c
--- xfmedia-0.9.2/src/mainwin.c	2006-11-27 07:21:23.000000000 +0000
+++ xfmedia-0.9.2.my/src/mainwin.c	2010-11-01 13:01:17.000000000 +0000
@@ -1865,6 +1865,10 @@
     gboolean use_playlist_q  = xfmedia_playlist_queue_n_entries(mwin->playlist_q);
     gboolean ret = FALSE;
     
+    if(xfmedia_playlist_get_n_entries(mwin->plist) == 0)
+//    if(xfmedia_playlist_queue_is_empty(mwin->plist))
+	return;
+
     if(mwin->cur_playing
        && xfmedia_settings_get_bool("/xfmedia/playlist/shuffle")
        && !use_playlist_q )
@@ -1899,6 +1903,10 @@
 {
     gint tot_items, idx = -1;
     
+    if(xfmedia_playlist_get_n_entries(mwin->plist) == 0)
+//    if(xfmedia_playlist_queue_is_empty(mwin->plist))
+	return;
+
     if(xfmedia_settings_get_bool("/xfmedia/playlist/shuffle")) {
         XfmediaPlaylistEntryRef *ref = NULL;
         gboolean playing = FALSE;