summaryrefslogtreecommitdiffstats
path: root/libhb/work.c
diff options
context:
space:
mode:
authorvan <[email protected]>2008-04-04 16:49:33 +0000
committervan <[email protected]>2008-04-04 16:49:33 +0000
commit7bde7810e9f4a32aae494a151a3ec2577b201db6 (patch)
tree130ea103845172eb247b3ed01219288324221ab0 /libhb/work.c
parent8f7e4cf3d5a6a8fdd5557c1d5f54083ba942c9aa (diff)
Minor chapter cleanups.
- put chapter number in buf rather than a 'new chapter' flag. - use that chapter number to index chapter text in muxers so a dropped chapter doesn't make all subsequent chapter labeling wrong. - get rid of most of the chapter logging & just output one line giving the chapter text, number, frame & time. - fix a bug in sync that could cause chapter marks to be lost. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1377 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/work.c')
-rw-r--r--libhb/work.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libhb/work.c b/libhb/work.c
index e867a2bfe..a3507027e 100644
--- a/libhb/work.c
+++ b/libhb/work.c
@@ -840,8 +840,9 @@ static void work_loop( void * _w )
// 'buf_in' to NULL so that this code won't generate spurious duplicates.)
if( buf_in && buf_out && buf_in->new_chap && buf_in->start == buf_out->start)
{
- hb_log("work %s: Copying Chapter Break @ %lld", w->name, buf_in->start);
- buf_out->new_chap = 1;
+ // restore log below to debug chapter mark propagation problems
+ //hb_log("work %s: Copying Chapter Break @ %lld", w->name, buf_in->start);
+ buf_out->new_chap = buf_in->new_chap;
}
if( buf_in )