diff options
author | eddyg <[email protected]> | 2009-05-06 02:25:58 +0000 |
---|---|---|
committer | eddyg <[email protected]> | 2009-05-06 02:25:58 +0000 |
commit | 6add7d899f49abbe2b6cc0702296941e948f5ef5 (patch) | |
tree | 386ec27521bf5b11a54065869dd8b0ea3220ad76 /libhb/deccc608sub.c | |
parent | 046f366e1f748130ae00c8a214b100492a50a394 (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/deccc608sub.c')
-rw-r--r-- | libhb/deccc608sub.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libhb/deccc608sub.c b/libhb/deccc608sub.c index 2b0b199fa..0451b251e 100644 --- a/libhb/deccc608sub.c +++ b/libhb/deccc608sub.c @@ -2048,10 +2048,18 @@ void handle_command (/*const */ unsigned char c1, const unsigned char c2, struct } void handle_end_of_data (struct s_write *wb) -{ +{ + hb_buffer_t *buffer; + // We issue a EraseDisplayedMemory here so if there's any captions pending // they get written to file. handle_command (0x14, 0x2c, wb); // EDM + + /* + * At the end of the subtitle stream HB wants an empty buffer + */ + buffer = hb_buffer_init( 0 ); + hb_fifo_push( wb->subtitle->fifo_raw, buffer ); } void handle_double (const unsigned char c1, const unsigned char c2, struct s_write *wb) |