diff options
author | jstebbins <[email protected]> | 2011-06-15 16:38:13 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2011-06-15 16:38:13 +0000 |
commit | 4d7216fba8652a83821be49cd16cc851b5cc4cd2 (patch) | |
tree | e809a93e3606ebc118f12e75b88fc15fced54bcb /libhb/decssasub.c | |
parent | 74dd3640936fe30a7be562615a997c30ebe5acb0 (diff) |
libhb: fix a warning in decssasub.c by adding new hb_valog function
And consolidate logging code in hb_valog. hb_log and hb_deep_log
call hb_valog.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4060 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/decssasub.c')
-rw-r--r-- | libhb/decssasub.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/libhb/decssasub.c b/libhb/decssasub.c index 460a8ddc0..2d2ec3d2b 100644 --- a/libhb/decssasub.c +++ b/libhb/decssasub.c @@ -19,7 +19,6 @@ * * @author David Foster (davidfstr) */ - #include <stdlib.h> #include <stdio.h> #include "hb.h" @@ -574,15 +573,7 @@ static void ssa_log(int level, const char *fmt, va_list args, void *data) { if ( level < 5 ) // same as default verbosity when no callback is set { - char *msg; - if ( vasprintf( &msg, fmt, args ) < 0 ) - { - hb_log( "decssasub: could not report libass message\n" ); - return; - } - hb_log( "[ass] %s", msg ); // no need for extra '\n' because libass sends it - - free( msg ); + hb_valog( 1, "[ass]", fmt, args ); } } |