reset line to avoid duplicating last item
[rugen] / src / dv1394app.c
index 5ccdcbe..dcebf7c 100644 (file)
@@ -176,6 +176,9 @@ static void playlist_open(dv1394app this, char* filename)
                                char* s;
                                char l[PATH_MAX];
 
+                               /* reset line */
+                               l[0] = 0;
+
                                /* load string */
                                fgets(l, sizeof(l), f);
 
@@ -599,6 +602,9 @@ dv1394app dv1394app_init( GtkWidget *window, char *instance )
                        gtk_signal_connect( GTK_OBJECT( trim ), "button_release_event", GTK_SIGNAL_FUNC (trim_released), this );
                }
                this->seek_flag = 1;
+
+               this->playing[0] = create_pixbuf("empty_16x16.png");
+               this->playing[1] = create_pixbuf("item_playing_16x16_(Axialis_Team).png");
        }
 
        if ( instance != NULL )