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

smooth: remove write-only variable

parent e937acbf
...@@ -489,10 +489,7 @@ static int Download( stream_t *s, sms_stream_t *sms ) ...@@ -489,10 +489,7 @@ static int Download( stream_t *s, sms_stream_t *sms )
if( sms->p_chunks == NULL || sms->p_chunks == sms->p_lastchunk ) if( sms->p_chunks == NULL || sms->p_chunks == sms->p_lastchunk )
return VLC_SUCCESS; return VLC_SUCCESS;
vlc_mutex_lock( &p_sys->playback.lock );
p_sys->playback.b_underrun = false;
bw_stats_underrun( sms ); bw_stats_underrun( sms );
vlc_mutex_unlock( &p_sys->playback.lock );
quality_level_t *new_qlevel = BandwidthAdaptation( s, sms, sms->i_obw, quality_level_t *new_qlevel = BandwidthAdaptation( s, sms, sms->i_obw,
duration ); duration );
......
...@@ -690,9 +690,6 @@ static chunk_t *get_chunk( stream_t *s, const bool wait, bool *pb_isinit ) ...@@ -690,9 +690,6 @@ static chunk_t *get_chunk( stream_t *s, const bool wait, bool *pb_isinit )
} }
msg_Dbg( s, "get_chunk is waiting for chunk %"PRId64"!!!", p_chunk->start_time ); msg_Dbg( s, "get_chunk is waiting for chunk %"PRId64"!!!", p_chunk->start_time );
vlc_mutex_lock( &p_sys->playback.lock );
p_sys->playback.b_underrun = true;
vlc_mutex_unlock( &p_sys->playback.lock );
vlc_cond_timedwait( &p_sys->playback.wait, vlc_cond_timedwait( &p_sys->playback.wait,
&p_sys->p_current_stream->chunks_lock, mdate() + CLOCK_FREQ/2 ); &p_sys->p_current_stream->chunks_lock, mdate() + CLOCK_FREQ/2 );
} }
......
...@@ -133,7 +133,6 @@ struct stream_sys_t ...@@ -133,7 +133,6 @@ struct stream_sys_t
} init; } init;
vlc_mutex_t lock; vlc_mutex_t lock;
vlc_cond_t wait; /* some condition to wait on */ vlc_cond_t wait; /* some condition to wait on */
bool b_underrun; /* did we ran out of data recently */
} playback; } playback;
/* state */ /* state */
......
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