Commit d8e03df8 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

libass/win32: Factorize

parent 53e01409
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment