summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjbrjake <[email protected]>2007-08-29 18:17:09 +0000
committerjbrjake <[email protected]>2007-08-29 18:17:09 +0000
commit7b95e146c522e0343b284145a5c1a0f7df84dd40 (patch)
tree6c5fefe1a895f1597bcf011982224238ad5c3d0d
parentcce93764aa264eef505ad194f215a398b855dd72 (diff)
Die, non-standard printf logging, die!
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@895 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--libhb/decmpeg2.c8
-rw-r--r--libhb/work.c2
2 files changed, 5 insertions, 5 deletions
diff --git a/libhb/decmpeg2.c b/libhb/decmpeg2.c
index fad850171..0c5d2ecf6 100644
--- a/libhb/decmpeg2.c
+++ b/libhb/decmpeg2.c
@@ -126,7 +126,7 @@ int hb_libmpeg2_decode( hb_libmpeg2_t * m, hb_buffer_t * buf_es,
}
else if( state == STATE_GOP && m->look_for_break == 2)
{
- printf("MPEG2: Group of pictures found, searching for I-Frame\n");
+ hb_log("MPEG2: Group of pictures found, searching for I-Frame");
m->look_for_break = 1;
}
else if( ( state == STATE_SLICE || state == STATE_END ) &&
@@ -140,7 +140,7 @@ int hb_libmpeg2_decode( hb_libmpeg2_t * m, hb_buffer_t * buf_es,
// If we are looking for a break, insert the chapter break on an I-Frame
if( m->look_for_break == 1 )
{
- printf("MPEG2: I-Frame Found\n");
+ hb_log("MPEG2: I-Frame Found");
m->look_for_break = 0;
chap_break = 1;
}
@@ -154,7 +154,7 @@ int hb_libmpeg2_decode( hb_libmpeg2_t * m, hb_buffer_t * buf_es,
// Was a good break point found?
if( chap_break )
{
- printf("MPEG2: Chapter Break Inserted\n");
+ hb_log("MPEG2: Chapter Break Inserted");
chap_break = 0;
buf->new_chap = 1;
}
@@ -378,7 +378,7 @@ int decmpeg2Work( hb_work_object_t * w, hb_buffer_t ** buf_in,
// stream. We need to shift it.
if( (*buf_in)->new_chap )
{
- printf("MPEG2: Chapter Break Cell Found, searching for GOP\n");
+ hb_log("MPEG2: Chapter Break Cell Found, searching for GOP");
pv->libmpeg2->look_for_break = 2;
(*buf_in)->new_chap = 0;
}
diff --git a/libhb/work.c b/libhb/work.c
index 0302a3d14..e73bf1693 100644
--- a/libhb/work.c
+++ b/libhb/work.c
@@ -721,7 +721,7 @@ static void work_loop( void * _w )
// Propogate any chapter breaks for the worker
if( buf_in && buf_out && buf_in->new_chap )
{
- printf("WORK: Copying Chapter Break\n");
+ hb_log("WORK: Copying Chapter Break");
buf_out->new_chap = 1;
}