[vlc-commits] pls: remove write-only value

Rémi Denis-Courmont git at videolan.org
Mon Nov 17 18:03:26 CET 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Nov 17 18:03:32 2014 +0200| [6412357f64c2cd622cd62f95debc6765ae1f3076] | committer: Rémi Denis-Courmont

pls: remove write-only value

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

 modules/demux/playlist/pls.c |   10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/modules/demux/playlist/pls.c b/modules/demux/playlist/pls.c
index 5608084..6c30831 100644
--- a/modules/demux/playlist/pls.c
+++ b/modules/demux/playlist/pls.c
@@ -78,7 +78,6 @@ void Close_PLS( vlc_object_t *p_this )
 
 static int Demux( demux_t *p_demux )
 {
-    mtime_t        i_duration = -1;
     char          *psz_name = NULL;
     char          *psz_line;
     char          *psz_mrl = NULL;
@@ -154,7 +153,6 @@ static int Demux( demux_t *p_demux )
             }
             free( psz_name );
             psz_name = NULL;
-            i_duration = -1;
             i_item = i_new_item;
         }
 
@@ -177,13 +175,7 @@ static int Demux( demux_t *p_demux )
             psz_name = strdup( psz_value );
         }
         else if( !strncasecmp( psz_key, "length", sizeof("length") -1 ) )
-        {
-            i_duration = atoll( psz_value );
-            if( i_duration != -1 )
-            {
-                i_duration *= 1000000;
-            }
-        }
+            /* duration in seconds */;
         else
         {
             msg_Warn( p_demux, "unknown key found in pls file: %s", psz_key );



More information about the vlc-commits mailing list