[vlc-commits] commit: Removed useless test in oggseek. (Laurent Aimar )

git at videolan.org git at videolan.org
Sun Oct 31 13:05:27 CET 2010


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Oct 31 12:31:11 2010 +0100| [b04d7e33a94f7d5d037881f88935f0ae9538a658] | committer: Laurent Aimar 

Removed useless test in oggseek.

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

 modules/demux/oggseek.c |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/modules/demux/oggseek.c b/modules/demux/oggseek.c
index e9d993c..abe2a6b 100644
--- a/modules/demux/oggseek.c
+++ b/modules/demux/oggseek.c
@@ -678,12 +678,9 @@ static demux_index_entry_t *get_bounds_for ( logical_stream_t *p_stream, int64_t
 
         if ( i_frame < i_tframe )
         {
-            if ( pi_pos_lower != NULL )
-            {
-                *pi_pos_lower = idx->i_pagepos;
-                idx = idx->p_next;
-                continue;
-            }
+            *pi_pos_lower = idx->i_pagepos;
+            idx = idx->p_next;
+            continue;
         }
 
         return idx;



More information about the vlc-commits mailing list