Commit d675b5e2 authored by Laurent Aimar's avatar Laurent Aimar

Revert "libass: add message callback"

This reverts commit 3e6913a3.

The decoder object can be destroyed before libass is and so cannot be
used for logging.
parent fec1494d
...@@ -120,23 +120,6 @@ static void RegionDraw( subpicture_region_t *p_region, ASS_Image *p_img ); ...@@ -120,23 +120,6 @@ static void RegionDraw( subpicture_region_t *p_region, ASS_Image *p_img );
//#define DEBUG_REGION //#define DEBUG_REGION
static void MessageCallback( int level, const char *fmt, va_list args, void *data )
{
decoder_t *p_dec = (decoder_t *)data;
// translate verbosity level
if( level > 6 )
return;
else if( level > 4 )
level = VLC_MSG_DBG;
else if( level > 1 )
level = VLC_MSG_WARN;
else
level = VLC_MSG_ERR;
msg_GenericVa( p_dec, level, MODULE_STRING, fmt, args );
}
/***************************************************************************** /*****************************************************************************
* Create: Open libass decoder. * Create: Open libass decoder.
*****************************************************************************/ *****************************************************************************/
...@@ -172,9 +155,6 @@ static int Create( vlc_object_t *p_this ) ...@@ -172,9 +155,6 @@ static int Create( vlc_object_t *p_this )
return VLC_EGENERIC; return VLC_EGENERIC;
} }
/* Add message callback for logging */
ass_set_message_cb( p_sys->p_library, MessageCallback, p_dec );
/* load attachments */ /* load attachments */
input_attachment_t **pp_attachments; input_attachment_t **pp_attachments;
int i_attachments; int i_attachments;
......
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