wok-next annotate xfmedia/stuff/xfmedia-empty-prev-next-fix.patch @ rev 16912

workerfm: add license
author Yuri Pourre <yuripourre@gmail.com>
date Tue Jul 15 21:27:35 2014 -0300 (2014-07-15)
parents
children
rev   line source
gokhlayeh@8884 1 diff -wbBur xfmedia-0.9.2/src/mainwin.c xfmedia-0.9.2.my/src/mainwin.c
gokhlayeh@8884 2 --- xfmedia-0.9.2/src/mainwin.c 2006-11-27 07:21:23.000000000 +0000
gokhlayeh@8884 3 +++ xfmedia-0.9.2.my/src/mainwin.c 2010-11-01 13:01:17.000000000 +0000
gokhlayeh@8884 4 @@ -1865,6 +1865,10 @@
gokhlayeh@8884 5 gboolean use_playlist_q = xfmedia_playlist_queue_n_entries(mwin->playlist_q);
gokhlayeh@8884 6 gboolean ret = FALSE;
gokhlayeh@8884 7
gokhlayeh@8884 8 + if(xfmedia_playlist_get_n_entries(mwin->plist) == 0)
gokhlayeh@8884 9 +// if(xfmedia_playlist_queue_is_empty(mwin->plist))
gokhlayeh@8884 10 + return;
gokhlayeh@8884 11 +
gokhlayeh@8884 12 if(mwin->cur_playing
gokhlayeh@8884 13 && xfmedia_settings_get_bool("/xfmedia/playlist/shuffle")
gokhlayeh@8884 14 && !use_playlist_q )
gokhlayeh@8884 15 @@ -1899,6 +1903,10 @@
gokhlayeh@8884 16 {
gokhlayeh@8884 17 gint tot_items, idx = -1;
gokhlayeh@8884 18
gokhlayeh@8884 19 + if(xfmedia_playlist_get_n_entries(mwin->plist) == 0)
gokhlayeh@8884 20 +// if(xfmedia_playlist_queue_is_empty(mwin->plist))
gokhlayeh@8884 21 + return;
gokhlayeh@8884 22 +
gokhlayeh@8884 23 if(xfmedia_settings_get_bool("/xfmedia/playlist/shuffle")) {
gokhlayeh@8884 24 XfmediaPlaylistEntryRef *ref = NULL;
gokhlayeh@8884 25 gboolean playing = FALSE;