summaryrefslogtreecommitdiffstats
path: root/libhb/render.c
diff options
context:
space:
mode:
Diffstat (limited to 'libhb/render.c')
-rw-r--r--libhb/render.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libhb/render.c b/libhb/render.c
index 275d05589..d12937e7a 100644
--- a/libhb/render.c
+++ b/libhb/render.c
@@ -307,7 +307,10 @@ int renderWork( hb_work_object_t * w, hb_buffer_t ** buf_in,
pv->total_lost_time += temp_duration;
pv->dropped_frames++;
- hb_fifo_get( pv->subtitle_queue );
+ /* Pop the frame's subtitle and dispose of it. */
+ hb_buffer_t * subtitles = hb_fifo_get( pv->subtitle_queue );
+ hb_buffer_close( &subtitles );
+
buf_tmp_in = NULL;
}
else