[vlc-commits] stream: remove shadow variable

Rémi Denis-Courmont git at videolan.org
Wed Aug 13 20:29:12 CEST 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Aug 13 20:40:45 2014 +0300| [ddf18ea09b7e92b2da739abe7f193d8798d974f4] | committer: Rémi Denis-Courmont

stream: remove shadow variable

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

 src/input/stream.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/input/stream.c b/src/input/stream.c
index 42e464a..42cd823 100644
--- a/src/input/stream.c
+++ b/src/input/stream.c
@@ -748,9 +748,9 @@ static int AStreamReadBlock( stream_t *s, void *p_read, unsigned int i_read )
     if( p_data == NULL )
     {
         /* seek within this stream if possible, else use plain old read and discard */
-        stream_sys_t *p_sys = s->p_sys;
-        access_t     *p_access = p_sys->p_access;
-        bool   b_aseek;
+        access_t *p_access = p_sys->p_access;
+        bool b_aseek;
+
         access_Control( p_access, ACCESS_CAN_SEEK, &b_aseek );
         if( b_aseek )
             return AStreamSeekBlock( s, p_sys->i_pos + i_read ) ? 0 : i_read;



More information about the vlc-commits mailing list