[vlc-commits] smooth: remove write-only variable

Rémi Denis-Courmont git at videolan.org
Thu Jul 9 18:33:20 CEST 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Jul  9 18:48:37 2015 +0300| [f06e4545988c0f5217ff80e0e83770347fcac4d1] | committer: Rémi Denis-Courmont

smooth: remove write-only variable

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f06e4545988c0f5217ff80e0e83770347fcac4d1
---

 modules/stream_filter/smooth/smooth.c |    7 -------
 modules/stream_filter/smooth/smooth.h |    1 -
 2 files changed, 8 deletions(-)

diff --git a/modules/stream_filter/smooth/smooth.c b/modules/stream_filter/smooth/smooth.c
index d548bae..e15c53e 100644
--- a/modules/stream_filter/smooth/smooth.c
+++ b/modules/stream_filter/smooth/smooth.c
@@ -526,7 +526,6 @@ static int Open( vlc_object_t *p_this )
         free( p_sys );
         return VLC_EGENERIC;
     }
-    p_sys->playback.toffset = p_sys->p_current_stream->p_playback->start_time;
     p_sys->playback.next_chunk_offset = CHUNK_OFFSET_UNSET;
     p_sys->i_probe_length = SMS_PROBE_LENGTH;
 
@@ -562,10 +561,6 @@ static void Close( vlc_object_t *p_this )
     p_sys->b_close = true;
     vlc_cond_signal(&p_sys->download.wait);
 
-    vlc_mutex_lock( &p_sys->playback.lock );
-    p_sys->playback.toffset = 0;
-    vlc_mutex_unlock( &p_sys->playback.lock );
-
     vlc_join( p_sys->download.thread, NULL );
     vlc_mutex_destroy( &p_sys->lock );
     vlc_cond_destroy( &p_sys->download.wait );
@@ -719,7 +714,6 @@ static unsigned int sms_Read( stream_t *s, uint8_t *p_read, unsigned int i_read
             if( chunk->type == VIDEO_ES ||
                 ( !SMS_GET_SELECTED_ST( VIDEO_ES ) && chunk->type == AUDIO_ES ) )
             {
-                p_sys->playback.toffset += chunk->duration;
                 vlc_cond_signal( &p_sys->download.wait );
             }
 
@@ -873,7 +867,6 @@ static int chunk_Seek( stream_t *s, const uint64_t pos )
 
         vlc_mutex_lock( &p_sys->lock );
         resetChunksState( p_sys );
-        p_sys->playback.toffset = p_sys->time_pos;
         p_sys->playback.next_chunk_offset = 0;
         p_sys->playback.boffset = 0;
         p_sys->time_pos = p_sys->vod_duration * pos / FAKE_STREAM_SIZE;
diff --git a/modules/stream_filter/smooth/smooth.h b/modules/stream_filter/smooth/smooth.h
index 9a8f115..2770d4d 100644
--- a/modules/stream_filter/smooth/smooth.h
+++ b/modules/stream_filter/smooth/smooth.h
@@ -124,7 +124,6 @@ struct stream_sys_t
     struct
     {
         uint64_t    boffset;     /* current byte offset in media */
-        uint64_t    toffset;     /* current time offset in media */
         uint64_t    next_chunk_offset;
         struct
         {



More information about the vlc-commits mailing list