[vlc-commits] smooth: remove antilogy
Rémi Denis-Courmont
git at videolan.org
Fri Aug 21 19:14:25 CEST 2015
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Aug 21 19:50:11 2015 +0300| [f2466501a560f6487420226e67c02c7417445cce] | committer: Rémi Denis-Courmont
smooth: remove antilogy
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f2466501a560f6487420226e67c02c7417445cce
---
modules/stream_filter/smooth/downloader.c | 18 +++---------------
1 file changed, 3 insertions(+), 15 deletions(-)
diff --git a/modules/stream_filter/smooth/downloader.c b/modules/stream_filter/smooth/downloader.c
index 7f269bc..56eca2f 100644
--- a/modules/stream_filter/smooth/downloader.c
+++ b/modules/stream_filter/smooth/downloader.c
@@ -424,24 +424,12 @@ build_init_chunk_error:
static int Download( stream_t *s, sms_stream_t *sms )
{
stream_sys_t *p_sys = s->p_sys;
+ chunk_t *chunk = sms->p_nextdownload;
- assert( sms->p_nextdownload );
- assert( sms->p_nextdownload->data == NULL );
+ assert( chunk != NULL );
+ assert( chunk->data == NULL );
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;
char *url = ConstructUrl( sms->url_template, p_sys->download.base_url,
More information about the vlc-commits
mailing list