]> git.sesse.net Git - vlc/commitdiff
input: Removes useless "item-change" variable
authorRafaël Carré <funman@videolan.org>
Tue, 2 Oct 2007 21:37:54 +0000 (21:37 +0000)
committerRafaël Carré <funman@videolan.org>
Tue, 2 Oct 2007 21:37:54 +0000 (21:37 +0000)
modules/codec/vorbis.c
src/input/input.c
src/input/var.c

index acc74d0faac547c838122b87de76b51323784293..79a75e3e3fbf6054595a5176112ce12b2f7bb7c2 100644 (file)
@@ -31,6 +31,7 @@
 #include <vlc_codec.h>
 #include <vlc_aout.h>
 #include <vlc_input.h>
+#include <vlc_playlist.h>
 #include <vlc_sout.h>
 
 #include <ogg/ogg.h>
@@ -725,8 +726,7 @@ static void ParseVorbisComments( decoder_t *p_dec )
                 r->pf_peak[AUDIO_REPLAY_GAIN_ALBUM] = atof( psz_value );
             }
         }
-        /* FIXME */
-        var_SetInteger( p_input, "item-change", p_item->i_id );
+        var_SetInteger( pl_Get( p_input ), "item-change", p_item->i_id );
         free( psz_comment );
         i++;
     }
index 06e23143c540d10e2d5ff76bb1fde6feefe35cce..ab6f6a0bce2b934795f1ed214289f189807d5fe9 100644 (file)
@@ -2008,7 +2008,7 @@ static int UpdateFromAccess( input_thread_t *p_input )
         vlc_meta_t *p_meta = vlc_meta_New();
         access2_Control( p_input->p->input.p_access,ACCESS_GET_META, p_meta );
         InputUpdateMeta( p_input, p_meta );
-        var_SetBool( p_input, "item-change", p_input->p->input.p_item->i_id );
+        var_SetInteger( pl_Get( p_input ), "item-change", p_input->p->input.p_item->i_id );
         p_access->info.i_update &= ~INPUT_UPDATE_META;
     }
 
index e03e60047c915681116b4e0b2b763475ef6ddc8b..fa8e04c46ad49661910fa514b2fc484e5ef72fd0 100644 (file)
@@ -193,9 +193,6 @@ void input_ControlVarInit ( input_thread_t *p_input )
          * TODO list all changes warn by this callbacks */
         var_Create( p_input, "intf-change", VLC_VAR_BOOL );
         var_SetBool( p_input, "intf-change", VLC_TRUE );
-
-       /* item-change variable */
-        var_Create( p_input, "item-change", VLC_VAR_INTEGER );
     }
 #undef ADD_CALLBACK
 }