reset error before item normalize
[melted_gui] / src / library.c
index a54bfaf..7a12603 100644 (file)
@@ -56,6 +56,8 @@ void omnplay_library_normalize_item(omnplay_instance_t* app, playlist_item_t* it
 
     lib = omnplay_library_find(app, item->id);
 
+    item->error = 0;
+
     if(lib)
     {
 
@@ -68,6 +70,8 @@ void omnplay_library_normalize_item(omnplay_instance_t* app, playlist_item_t* it
             item->in = lib->in;
         };
     }
+    else
+        item->error = PLAYLIST_ITEM_ERROR_LIB;
 
     pthread_mutex_unlock(&app->library.lock);
 };
@@ -261,6 +265,8 @@ void omnplay_library_draw(omnplay_instance_t* app)
             1, frames2tc(app->library.item[i].dur, 25.0, tc),
             2, app->library.item[i].title,
             3, i,
+            4, FALSE,
+            5, "red",
             -1 );
     }