diff options
author | van <[email protected]> | 2008-03-20 05:28:36 +0000 |
---|---|---|
committer | van <[email protected]> | 2008-03-20 05:28:36 +0000 |
commit | 5265ea2db4fb71b3b894c16b830783091b34129a (patch) | |
tree | 9b690a5bcbf2727590bdf5be6eb33ce79ea52d47 /libhb/internal.h | |
parent | 3a3870d7ea1e81e1a145b1d555b9f0164860f9e3 (diff) |
Fix two of my stupid bugs that prevented using the queue with transport streams:
- keep a cache of the pid/substream id mappings from each scan rather than assuming an encode will immediately follow a scan (there will be lots of scans followed by lots of encodes when the queue is used).
- rewrite a few things to get rid of static variables. hb_ts_stream_decode is called by both scan & reader and they're in different threads. All the working storage & state has to either be in the stream struct or on the stack so it's private to the calling thread or it gets corrupted when doing a scan in the middle of an encode.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1351 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/internal.h')
-rw-r--r-- | libhb/internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/internal.h b/libhb/internal.h index a2b479929..8095967ac 100644 --- a/libhb/internal.h +++ b/libhb/internal.h @@ -136,7 +136,7 @@ int hb_dvd_chapter( hb_dvd_t * ); int hb_dvd_is_break( hb_dvd_t * d ); void hb_dvd_close( hb_dvd_t ** ); -hb_stream_t * hb_stream_open( char * path ); +hb_stream_t * hb_stream_open( char * path, int opentype ); void hb_stream_close( hb_stream_t ** ); hb_title_t * hb_stream_title_scan( hb_stream_t *); int hb_stream_read( hb_stream_t *, hb_buffer_t *); |