summaryrefslogtreecommitdiffstats
path: root/libhb/decmpeg2.c
diff options
context:
space:
mode:
authorvan <[email protected]>2008-04-14 08:27:59 +0000
committervan <[email protected]>2008-04-14 08:27:59 +0000
commit16b6e49fdb0b999b1498dc9c596d3df6b6fa83ea (patch)
tree2150d73885c466b55b28fc1caf63b12b2b50e7cc /libhb/decmpeg2.c
parentd3aeb74cdf94f70b643da897dfb666d81a743817 (diff)
Fix the automatic subtitle scan that I broke with r1412.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1413 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/decmpeg2.c')
-rw-r--r--libhb/decmpeg2.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libhb/decmpeg2.c b/libhb/decmpeg2.c
index 03f6656b6..dd30ba8b5 100644
--- a/libhb/decmpeg2.c
+++ b/libhb/decmpeg2.c
@@ -389,6 +389,7 @@ int decmpeg2Work( hb_work_object_t * w, hb_buffer_t ** buf_in,
{
hb_work_private_t * pv = w->private_data;
hb_buffer_t * buf, * last = NULL;
+ int status = HB_WORK_OK;
// The reader found a chapter break, consume it completely, and remove it from the
// stream. We need to shift it.
@@ -405,6 +406,7 @@ int decmpeg2Work( hb_work_object_t * w, hb_buffer_t ** buf_in,
{
hb_list_add( pv->list, *buf_in );
*buf_in = NULL;
+ status = HB_WORK_DONE;
}
*buf_out = NULL;
@@ -423,7 +425,7 @@ int decmpeg2Work( hb_work_object_t * w, hb_buffer_t ** buf_in,
}
}
- return HB_WORK_OK;
+ return status;
}
/**********************************************************************