SIGTERM in general_loop

This commit is contained in:
Carlos Fernandez 2016-09-28 12:16:09 -07:00
parent 352283d0b6
commit 2ae3b8bca0

View File

@ -539,6 +539,8 @@ void raw_loop (struct lib_ccx_ctx *ctx)
do
{
if (terminate_asap)
break;
ret = general_getmoredata(ctx, &data);
if(ret == CCX_EOF)
@ -808,7 +810,8 @@ void general_loop(struct lib_ccx_ctx *ctx)
end_of_file = 0;
while (!end_of_file && is_decoder_processed_enough(ctx) == CCX_FALSE)
{
if (terminate_asap)
break;
// GET MORE DATA IN BUFFER
position_sanity_check(ctx->demux_ctx->infd);
switch (stream_mode)