fix equantion of item's duration normalization
authorMaksym Veremeyenko <verem@m1stereo.tv>
Thu, 6 Oct 2011 10:57:37 +0000 (13:57 +0300)
committerMaksym Veremeyenko <verem@m1stereo.tv>
Thu, 6 Oct 2011 10:57:37 +0000 (13:57 +0300)
src/library.c

index ce0c181..62bed43 100644 (file)
@@ -83,7 +83,7 @@ int omnplay_library_normalize_item(omnplay_instance_t* app, playlist_item_t* ite
 
         if(!item->dur || (item->in + item->dur) > (lib->in + lib->dur))
         {
-            item->dur = lib->dur;
+            item->dur = lib->in + lib->dur - item->in;
             r++;
         };