From: Darren S. <ds...@us...> - 2005-05-20 20:04:56
|
Update of /cvsroot/xine/gnome-xine/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17617/src Modified Files: playlist.c Log Message: Don't try to clone a non-existent item. Index: playlist.c =================================================================== RCS file: /cvsroot/xine/gnome-xine/src/playlist.c,v retrieving revision 1.122 retrieving revision 1.123 diff -u -r1.122 -r1.123 --- playlist.c 20 May 2005 19:38:07 -0000 1.122 +++ playlist.c 20 May 2005 20:04:42 -0000 1.123 @@ -77,6 +77,7 @@ #define mark_play_item() set_mark_play_item (TRUE) static void set_mark_play_item (gboolean state); static void play_next (void); +static int playlist_clip (int); static inline void remove_trailing_cr (char *str) { @@ -440,7 +441,10 @@ { play_item_t *i; CUR_ITEM_LOCK (); - i = play_item_copy (cur_item ? : playlist_get_item (cur_list_pos)); + i = cur_item + ? play_item_copy (cur_item) + : (cur_list_pos >= 0 ? play_item_copy (playlist_get_item (cur_list_pos)) + : NULL); CUR_ITEM_UNLOCK (); return i; } |