<div dir="ltr">On Mon, Oct 6, 2014 at 1:12 PM, Antti Ajanki <span dir="ltr"><<a href="mailto:antti.ajanki@iki.fi" target="_blank">antti.ajanki@iki.fi</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">generate_new_chunk() never proceed to the last fragment run if the<br>
sentinel is included.<br>
---<br>
modules/stream_filter/hds/hds.c | 9 +++++++++<br>
1 file changed, 9 insertions(+)<br>
<br>
diff --git a/modules/stream_filter/hds/hds.c b/modules/stream_filter/hds/hds.c<br>
index ff7d7a6..1831d71 100644<br>
--- a/modules/stream_filter/hds/hds.c<br>
+++ b/modules/stream_filter/hds/hds.c<br>
@@ -430,6 +430,15 @@ static uint8_t* parse_afrt( vlc_object_t* p_this,<br>
s->fragment_run_count++;<br>
}<br>
<br>
+ if ( s->fragment_runs[s->fragment_run_count-1].fragment_number_start == 0 &&<br>
+ s->fragment_runs[s->fragment_run_count-1].fragment_timestamp == 0 &&<br>
+ s->fragment_runs[s->fragment_run_count-1].fragment_duration == 0 &&<br>
+ s->fragment_runs[s->fragment_run_count-1].discont == 0 )<br>
+ {<br>
+ /* ignore sentinel value */<br>
+ s->fragment_run_count--;<br>
+ }<br>
+<br>
return data_p;<br>
}<br>
<span><font color="#888888"><br></font></span></blockquote><div><br></div><div>Applied, thanks.<br><br>Best,<br>Tristan<br></div></div></div></div>