Commit 809bf29f authored by Jean-Paul Saman's avatar Jean-Paul Saman

dvbinfo: simplify check

parent 52def495
...@@ -352,12 +352,7 @@ static int dvbinfo_process(dvbinfo_capture_t *capture) ...@@ -352,12 +352,7 @@ static int dvbinfo_process(dvbinfo_capture_t *capture)
/* Wait for data to arrive */ /* Wait for data to arrive */
buffer = fifo_pop(capture->fifo); buffer = fifo_pop(capture->fifo);
if (buffer == NULL) if (buffer == NULL)
{ continue;
if (capture->b_alive)
continue;
else
break;
}
if (param->output) if (param->output)
{ {
...@@ -417,6 +412,7 @@ static int dvbinfo_process(dvbinfo_capture_t *capture) ...@@ -417,6 +412,7 @@ static int dvbinfo_process(dvbinfo_capture_t *capture)
} }
} }
assert(fifo_count(capture->fifo) == 0);
libdvbpsi_exit(stream); libdvbpsi_exit(stream);
err = 0; err = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment