summaryrefslogtreecommitdiffstats
path: root/libhb/render.c
diff options
context:
space:
mode:
authorvan <[email protected]>2008-07-26 21:22:17 +0000
committervan <[email protected]>2008-07-26 21:22:17 +0000
commitb5185c17599137dff179e9dadc420686592c291d (patch)
tree8afb3ce0808386a348708dcdef7b27a262e471c0 /libhb/render.c
parent02e6431ec0ca85a6725fe0c3604193771181bdde (diff)
Fix subtitle scan to work with new stream eof logic.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1584 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/render.c')
-rw-r--r--libhb/render.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libhb/render.c b/libhb/render.c
index 0fc5816a9..1989199fb 100644
--- a/libhb/render.c
+++ b/libhb/render.c
@@ -208,13 +208,14 @@ int renderWork( hb_work_object_t * w, hb_buffer_t ** buf_in,
hb_buffer_t * in = *buf_in, * buf_tmp_in = *buf_in;
hb_buffer_t * ivtc_buffer = NULL;
- if(!in->data)
+ if( in->size <= 0 )
{
/* If the input buffer is end of stream, send out an empty one
* to the next stage as well. Note that this will result in us
* losing the current contents of the delay queue.
*/
- *buf_out = job->indepth_scan? NULL : hb_buffer_init(0);
+ *buf_out = in;
+ *buf_in = NULL;
return HB_WORK_DONE;
}