]> git.sesse.net Git - vlc/blobdiff - modules/gui/gtk/playlist.c
* ALL: removed a bunch of unused add_category_hint().
[vlc] / modules / gui / gtk / playlist.c
index 86ea953fd06e62e98e9bfd9a589eeb8a7f71bec9..33f29bc600c3780cf1ed9c5e55e54fe84ff46e81 100644 (file)
@@ -2,7 +2,7 @@
  * gtk_playlist.c : Interface for the playlist dialog
  *****************************************************************************
  * Copyright (C) 2001 VideoLAN
- * $Id: playlist.c,v 1.6 2003/12/02 01:54:30 rocky Exp $
+ * $Id: playlist.c,v 1.9 2004/01/05 13:07:03 zorglub Exp $
  *
  * Authors: Pierre Baillet <oct@zoy.org>
  *          Stéphane Borel <stef@via.ecp.fr>
@@ -622,7 +622,8 @@ int GtkAppendList( playlist_t * p_playlist, int i_pos, GList * p_list )
                 /* ok; this is a really nasty trick to insert
                    the item where they are suppose to go but, hey
                    this works :P (btw, you are really nasty too) */
-               g_list_nth_data( p_list, i_dummy ), 0, 0,
+               g_list_nth_data( p_list, i_dummy ),
+               g_list_nth_data( p_list, i_dummy ),
                i_dummy == 0 ? PLAYLIST_INSERT | PLAYLIST_GO : PLAYLIST_INSERT,
                i_pos == PLAYLIST_END ? PLAYLIST_END : ( i_pos + i_dummy ) );
     }
@@ -698,7 +699,7 @@ void GtkRebuildCList( GtkCList * p_clist, playlist_t * p_playlist )
         mtime_t dur = p_playlist->pp_items[i_dummy]->i_duration;
         if ( dur != -1 )
         {
-         secstotimestr( psz_duration, dur );
+            secstotimestr( psz_duration, dur/1000000 );
         }
         else
         {