Commit a0a5b199 authored by hpi1's avatar hpi1

Do not reset display set complete flag unless there is new data to decode.

This is required for main path embedded IG streams where new IG stream
packets are constantly searched from data stream.
parent 9798296a
......@@ -358,8 +358,6 @@ int graphics_processor_decode_pes(PG_DISPLAY_SET **s, PES_BUFFER **p, int64_t st
*s = calloc(1, sizeof(PG_DISPLAY_SET));
}
(*s)->complete = 0;
while (*p && !(*s)->complete) {
/* time to decode next segment ? */
......@@ -380,6 +378,9 @@ int graphics_processor_decode_pes(PG_DISPLAY_SET **s, PES_BUFFER **p, int64_t st
/* decode segment */
if ((*p)->len > 2) {
(*s)->complete = 0;
_decode_segment(*s, *p);
}
......@@ -437,5 +438,9 @@ int graphics_processor_decode_ts(GRAPHICS_PROCESSOR *p,
unit += 6144;
}
return graphics_processor_decode_pes(s, &p->queue, stc);
if (p->queue) {
return graphics_processor_decode_pes(s, &p->queue, stc);
}
return *s && (*s)->complete;
}
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