summaryrefslogtreecommitdiffstats
path: root/libhb/decmpeg2.c
diff options
context:
space:
mode:
authoreddyg <[email protected]>2009-05-06 02:25:58 +0000
committereddyg <[email protected]>2009-05-06 02:25:58 +0000
commit6add7d899f49abbe2b6cc0702296941e948f5ef5 (patch)
tree386ec27521bf5b11a54065869dd8b0ea3220ad76 /libhb/decmpeg2.c
parent046f366e1f748130ae00c8a214b100492a50a394 (diff)
Push an EOF onto the subtitle fifos from the reader for DVD VOBSUBs and also from cc608 for closed captions
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2388 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/decmpeg2.c')
-rw-r--r--libhb/decmpeg2.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libhb/decmpeg2.c b/libhb/decmpeg2.c
index 9d28c9775..756eb9768 100644
--- a/libhb/decmpeg2.c
+++ b/libhb/decmpeg2.c
@@ -658,6 +658,13 @@ static 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;
+ /*
+ * Let the Closed Captions know that it is the end of the data.
+ */
+ if( pv->libmpeg2->subtitle )
+ {
+ handle_end_of_data( &pv->libmpeg2->cc608 );
+ }
}
*buf_out = NULL;