fix re-block border items
authorMaksym Veremeyenko <verem@m1stereo.tv>
Thu, 23 Jun 2011 12:09:01 +0000 (15:09 +0300)
committerMaksym Veremeyenko <verem@m1stereo.tv>
Thu, 23 Jun 2011 12:09:01 +0000 (15:09 +0300)
src/omnplay.cpp

index 28e2cdc..34b8d6d 100644 (file)
@@ -402,7 +402,7 @@ static void omnplay_playlist_block(omnplay_instance_t* app, control_buttons_t bu
         };
 
         /* update border items */
-        if(!start && !(app->playlist.item[start - 1].type & OMNPLAY_PLAYLIST_BLOCK_END))
+        if(start && !(app->playlist.item[start - 1].type & OMNPLAY_PLAYLIST_BLOCK_END))
         {
             app->playlist.item[start - 1].type = (playlist_item_type_t)(OMNPLAY_PLAYLIST_BLOCK_END
                 | app->playlist.item[start - 1].type);