[vlc-devel] commit: Libass: set more debug messages. (Jean-Baptiste Kempf )
git version control
git at videolan.org
Fri Apr 24 18:30:43 CEST 2009
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Apr 24 18:30:06 2009 +0200| [e5aac02e8af3b4930032c07d5b1b0afaad4f3736] | committer: Jean-Baptiste Kempf
Libass: set more debug messages.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e5aac02e8af3b4930032c07d5b1b0afaad4f3736
---
modules/codec/libass.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/modules/codec/libass.c b/modules/codec/libass.c
index 7e3cbf0..70d9c52 100644
--- a/modules/codec/libass.c
+++ b/modules/codec/libass.c
@@ -1,7 +1,7 @@
/*****************************************************************************
* SSA/ASS subtitle decoder using libass.
*****************************************************************************
- * Copyright (C) 2008 the VideoLAN team
+ * Copyright (C) 2008-2009 the VideoLAN team
* $Id$
*
* Authors: Laurent Aimar <fenrir at videolan.org>
@@ -617,6 +617,7 @@ static void RegionDraw( subpicture_region_t *p_region, ass_image_t *p_img )
static void SubpictureReleaseRegions( spu_t *p_spu, subpicture_t *p_subpic )
{
+ VLC_UNUSED( p_spu );
subpicture_region_ChainDelete( p_subpic->p_region );
p_subpic->p_region = NULL;
}
@@ -685,6 +686,7 @@ static ass_handle_t *AssHandleHold( decoder_t *p_dec )
char *psz_font_dir = NULL;
#if defined(WIN32)
+ /* This makes Windows build of VLC hang */
const UINT uPath = GetSystemWindowsDirectoryW( NULL, 0 );
if( uPath > 0 )
{
@@ -709,6 +711,7 @@ static ass_handle_t *AssHandleHold( decoder_t *p_dec )
if( !psz_font_dir )
goto error;
+ msg_Dbg( p_dec, "Setting libass fontdir: %s", psz_font_dir );
ass_set_fonts_dir( p_library, psz_font_dir );
free( psz_font_dir );
@@ -751,6 +754,8 @@ error:
if( p_library )
ass_library_done( p_library );
+ msg_Warn( p_dec, "Libass creation failed" );
+
free( p_ass );
vlc_mutex_unlock( &libass_lock );
return NULL;
More information about the vlc-devel
mailing list