Commit f2466501 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

smooth: remove antilogy

parent dfd9fc1c
...@@ -424,24 +424,12 @@ build_init_chunk_error: ...@@ -424,24 +424,12 @@ build_init_chunk_error:
static int Download( stream_t *s, sms_stream_t *sms ) static int Download( stream_t *s, sms_stream_t *sms )
{ {
stream_sys_t *p_sys = s->p_sys; stream_sys_t *p_sys = s->p_sys;
chunk_t *chunk = sms->p_nextdownload;
assert( sms->p_nextdownload ); assert( chunk != NULL );
assert( sms->p_nextdownload->data == NULL ); assert( chunk->data == NULL );
assert( sms->current_qlvl ); assert( sms->current_qlvl );
chunk_t *chunk = sms->p_nextdownload;
if( !chunk )
{
msg_Warn( s, "Could not find a chunk for stream %s", sms->name );
return VLC_EGENERIC;
}
if( chunk->data != NULL )
{
/* Segment already downloaded */
msg_Warn( s, "Segment already downloaded" );
return VLC_SUCCESS;
}
chunk->type = sms->type; chunk->type = sms->type;
char *url = ConstructUrl( sms->url_template, p_sys->download.base_url, char *url = ConstructUrl( sms->url_template, p_sys->download.base_url,
......
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