]> git.sesse.net Git - vlc/commitdiff
xosd: simplification.
authorRémi Duraffort <ivoire@videolan.org>
Sun, 22 Feb 2009 09:54:57 +0000 (10:54 +0100)
committerRémi Duraffort <ivoire@videolan.org>
Sun, 22 Feb 2009 09:57:32 +0000 (10:57 +0100)
modules/misc/notify/xosd.c

index 51f10c877a9266e29e84e98205e5866ef8ac410f..edaa72494c8f693d561614e3e62e981095b81b81 100644 (file)
@@ -274,10 +274,6 @@ static void Run( intf_thread_t *p_intf )
                 continue;
             }
             input_item_t *p_input = p_item->p_input;
-            vlc_gc_incref( p_input );
-
-            PL_UNLOCK;
-            pl_Release( p_intf );
 
             mtime_t i_duration = input_item_GetDuration( p_input );
             if( i_duration != -1 )
@@ -290,7 +286,8 @@ static void Run( intf_thread_t *p_intf )
             else
                 psz_display = strdup( p_input->psz_name );
 
-            vlc_gc_decref( p_input );
+            PL_UNLOCK;
+            pl_Release( p_intf );
         }
 
         /* Display */