vlc | branch: master | Francois Cartegnie <fcvlc...@free.fr> | Sun Nov 9 19:10:16 2014 +0100| [5b1a8b91e749982e525405397f7a05eccca0e441] | committer: Francois Cartegnie
stream_filter: smooth: pass stream reference when adding new chunks > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5b1a8b91e749982e525405397f7a05eccca0e441 --- modules/stream_filter/smooth/downloader.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/modules/stream_filter/smooth/downloader.c b/modules/stream_filter/smooth/downloader.c index 3f4e657..39079de 100644 --- a/modules/stream_filter/smooth/downloader.c +++ b/modules/stream_filter/smooth/downloader.c @@ -295,7 +295,7 @@ BandwidthAdaptation( stream_t *s, sms_stream_t *sms, } #endif -static int get_new_chunks( stream_t *s, chunk_t *ck ) +static int get_new_chunks( stream_t *s, chunk_t *ck, sms_stream_t *sms ) { stream_sys_t *p_sys = s->p_sys; @@ -304,12 +304,9 @@ static int get_new_chunks( stream_t *s, chunk_t *ck ) return VLC_EGENERIC; uint8_t version, fragment_count; uint32_t size, type, flags; - sms_stream_t *sms; UUID_t uuid; TfrfBoxDataFields_t *tfrf_df; - sms = SMS_GET_SELECTED_ST( ck->type ); - SMS_GET4BYTES( size ); SMS_GETFOURCC( type ); assert( type == ATOM_moof ); @@ -556,7 +553,7 @@ static int Download( stream_t *s, sms_stream_t *sms ) if( p_sys->b_live ) { - get_new_chunks( s, chunk ); + get_new_chunks( s, chunk, sms ); } msg_Info( s, "downloaded chunk @%"PRIu64" from stream %s at quality %u", _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits