diff options
Diffstat (limited to 'libhb/reader.c')
-rw-r--r-- | libhb/reader.c | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/libhb/reader.c b/libhb/reader.c index 1dda826d0..94ee77efb 100644 --- a/libhb/reader.c +++ b/libhb/reader.c @@ -194,12 +194,20 @@ static void ReaderFunc( void * _r ) int chapter = -1; int chapter_end = r->job->chapter_end; - if( !( r->dvd = hb_dvd_init( r->title->dvd ) ) ) + if ( r->title->type == HB_DVD_TYPE ) { - if ( !( r->stream = hb_stream_open( r->title->dvd, r->title ) ) ) - { - return; - } + if ( !( r->dvd = hb_dvd_init( r->title->path ) ) ) + return; + } + else if ( r->title->type == HB_STREAM_TYPE ) + { + if ( !( r->stream = hb_stream_open( r->title->path, r->title ) ) ) + return; + } + else + { + // Unknown type, should never happen + return; } if (r->dvd) |