summaryrefslogtreecommitdiffstats
path: root/libhb/reader.c
diff options
context:
space:
mode:
authorvan <[email protected]>2008-08-19 06:23:09 +0000
committervan <[email protected]>2008-08-19 06:23:09 +0000
commit074580619aa266cb4a0c047842f48caec07a9b37 (patch)
tree3c4cfcca533fa203df47aaf0f20bb49898f25b19 /libhb/reader.c
parent362599089c997ba3366015f65f3d061b918fb76e (diff)
fix subtitle indepth scan abort & hang.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1645 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/reader.c')
-rw-r--r--libhb/reader.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libhb/reader.c b/libhb/reader.c
index b06816d3d..0516932fb 100644
--- a/libhb/reader.c
+++ b/libhb/reader.c
@@ -334,7 +334,8 @@ static void ReaderFunc( void * _r )
( audio = hb_list_item( r->job->title->list_audio, n ) ) != NULL;
++n )
{
- push_buf( r, audio->priv.fifo_in, hb_buffer_init(0) );
+ if ( audio->priv.fifo_in )
+ push_buf( r, audio->priv.fifo_in, hb_buffer_init(0) );
}
hb_list_empty( &list );