wok-current diff xfmedia/stuff/xfmedia-empty-prev-next-fix.patch @ rev 18690
Up tazpkg(888), tazpanel(558)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Dec 11 01:54:14 2015 +0200 (2015-12-11) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/xfmedia/stuff/xfmedia-empty-prev-next-fix.patch Fri Dec 11 01:54:14 2015 +0200 1.3 @@ -0,0 +1,25 @@ 1.4 +diff -wbBur xfmedia-0.9.2/src/mainwin.c xfmedia-0.9.2.my/src/mainwin.c 1.5 +--- xfmedia-0.9.2/src/mainwin.c 2006-11-27 07:21:23.000000000 +0000 1.6 ++++ xfmedia-0.9.2.my/src/mainwin.c 2010-11-01 13:01:17.000000000 +0000 1.7 +@@ -1865,6 +1865,10 @@ 1.8 + gboolean use_playlist_q = xfmedia_playlist_queue_n_entries(mwin->playlist_q); 1.9 + gboolean ret = FALSE; 1.10 + 1.11 ++ if(xfmedia_playlist_get_n_entries(mwin->plist) == 0) 1.12 ++// if(xfmedia_playlist_queue_is_empty(mwin->plist)) 1.13 ++ return; 1.14 ++ 1.15 + if(mwin->cur_playing 1.16 + && xfmedia_settings_get_bool("/xfmedia/playlist/shuffle") 1.17 + && !use_playlist_q ) 1.18 +@@ -1899,6 +1903,10 @@ 1.19 + { 1.20 + gint tot_items, idx = -1; 1.21 + 1.22 ++ if(xfmedia_playlist_get_n_entries(mwin->plist) == 0) 1.23 ++// if(xfmedia_playlist_queue_is_empty(mwin->plist)) 1.24 ++ return; 1.25 ++ 1.26 + if(xfmedia_settings_get_bool("/xfmedia/playlist/shuffle")) { 1.27 + XfmediaPlaylistEntryRef *ref = NULL; 1.28 + gboolean playing = FALSE;