wok-current view xfmedia/stuff/xfmedia-empty-prev-next-fix.patch @ rev 16395
UP: hostapd (2.1), fix libnl missing pkgconfig file and add to ARM with rfkill
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Apr 16 03:02:41 2014 +0200 (2014-04-16) |
parents | |
children |
line source
1 diff -wbBur xfmedia-0.9.2/src/mainwin.c xfmedia-0.9.2.my/src/mainwin.c
2 --- xfmedia-0.9.2/src/mainwin.c 2006-11-27 07:21:23.000000000 +0000
3 +++ xfmedia-0.9.2.my/src/mainwin.c 2010-11-01 13:01:17.000000000 +0000
4 @@ -1865,6 +1865,10 @@
5 gboolean use_playlist_q = xfmedia_playlist_queue_n_entries(mwin->playlist_q);
6 gboolean ret = FALSE;
8 + if(xfmedia_playlist_get_n_entries(mwin->plist) == 0)
9 +// if(xfmedia_playlist_queue_is_empty(mwin->plist))
10 + return;
11 +
12 if(mwin->cur_playing
13 && xfmedia_settings_get_bool("/xfmedia/playlist/shuffle")
14 && !use_playlist_q )
15 @@ -1899,6 +1903,10 @@
16 {
17 gint tot_items, idx = -1;
19 + if(xfmedia_playlist_get_n_entries(mwin->plist) == 0)
20 +// if(xfmedia_playlist_queue_is_empty(mwin->plist))
21 + return;
22 +
23 if(xfmedia_settings_get_bool("/xfmedia/playlist/shuffle")) {
24 XfmediaPlaylistEntryRef *ref = NULL;
25 gboolean playing = FALSE;