X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fdv1394app.c;h=dcebf7c741e271566fa5d129e36fcf7281352d25;hb=d46fa892381df244e07f05949d033ace6707f8fd;hp=3471a5a6f6f294890868fc6d9566249226568324;hpb=504dc1986b9455653a57900cdb93ce78c6e475ae;p=rugen diff --git a/src/dv1394app.c b/src/dv1394app.c index 3471a5a..dcebf7c 100644 --- a/src/dv1394app.c +++ b/src/dv1394app.c @@ -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 ) @@ -709,7 +715,7 @@ char* frames2tc( int f, float fps, char* buf ) float d; int t; - if ( fps ) + if ( fps && f >= 0) { d = f / fps; t = d;