]> git.sesse.net Git - vlc/commitdiff
libass/win32: Factorize
authorJean-Baptiste Kempf <jb@videolan.org>
Mon, 26 Apr 2010 22:50:52 +0000 (00:50 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 26 Apr 2010 22:50:52 +0000 (00:50 +0200)
modules/codec/libass.c

index dbd5fde3cac2a6d45ce4a1d5e7c7c8cb6e2b290d..afa1a6496d4625f726c22b3187676e51561c2ea8 100644 (file)
@@ -732,7 +732,11 @@ static ass_handle_t *AssHandleHold( decoder_t *p_dec )
 #endif
 #ifdef WIN32
     if( p_dialog )
+    {
         dialog_ProgressSet( p_dialog, NULL, 1.0 );
+        dialog_ProgressDestroy( p_dialog );
+        p_dialog = NULL;
+    }
 #endif
 #else
     /* FIXME you HAVE to give him a font if no fontconfig */
@@ -750,10 +754,6 @@ static ass_handle_t *AssHandleHold( decoder_t *p_dec )
 
     /* */
     vlc_mutex_unlock( &libass_lock );
-#ifdef WIN32
-    if( p_dialog )
-        dialog_ProgressDestroy( p_dialog );
-#endif
     return p_ass;
 
 error: