Magellan Linux

Contents of /trunk/beep-media-player/patches/beep-media-player-0.9.7-seeking-playlist.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 144 - (show annotations) (download)
Tue May 8 20:06:05 2007 UTC (16 years, 11 months ago) by niro
File size: 678 byte(s)
-import

1 Index: beep/playlist.c
2 ===================================================================
3 RCS file: /cvsroot/beepmp/bmp/beep/playlist.c,v
4 retrieving revision 1.92
5 diff -u -r1.92 playlist.c
6 --- beep/playlist.c 18 Sep 2004 23:15:46 -0000 1.92
7 +++ beep/playlist.c 23 Oct 2004 16:26:55 -0000
8 @@ -721,7 +721,8 @@
9
10 bottom = MAX(0, playlist_get_length_nolock() -
11 playlistwin_list->pl_num_visible);
12 - row = CLAMP(pos - playlistwin_list->pl_num_visible / 2, 0, bottom);
13 + row = (pos < playlistwin_list->pl_num_visible) ? 0 :
14 + CLAMP(pos - playlistwin_list->pl_num_visible / 2, 0, bottom);
15 PLAYLIST_UNLOCK();
16 playlistwin_set_toprow(row);
17 }
18