Add warning if people try using an unimplemented aout function (zorglub!!!). This...
authorAntoine Cellerier <dionoea@videolan.org>
Sun, 16 Dec 2007 14:58:43 +0000 (14:58 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Sun, 16 Dec 2007 14:58:43 +0000 (14:58 +0000)
src/audio_output/dec.c
src/audio_output/intf.c

index ded0a49..26dba55 100644 (file)
@@ -140,9 +140,7 @@ static aout_input_t * DecNew( vlc_object_t * p_this, aout_instance_t * p_aout,
     aout_InputNew( p_aout, p_input );
 
     vlc_mutex_unlock( &p_aout->mixer_lock );
     aout_InputNew( p_aout, p_input );
 
     vlc_mutex_unlock( &p_aout->mixer_lock );
-    var_Create( p_this, "audio-desync", VLC_VAR_INTEGER | VLC_VAR_DOINHERIT );
-    var_Get( p_this, "audio-desync", &val );
-    p_input->i_desync = val.i_int * 1000;
+    p_input->i_desync = var_CreateGet( p_this, "audio-desync" ) * 1000;
 
     p_input_thread = (input_thread_t *)vlc_object_find( p_this,
                                            VLC_OBJECT_INPUT, FIND_PARENT );
 
     p_input_thread = (input_thread_t *)vlc_object_find( p_this,
                                            VLC_OBJECT_INPUT, FIND_PARENT );
index 0f74073..5de1aa0 100644 (file)
@@ -544,5 +544,7 @@ void aout_EnableFilter( vlc_object_t *p_this, const char *psz_name,
 char *aout_VisualChange( vlc_object_t *p_this, int i_skip )
 {
     (void)p_this; (void)i_skip;
 char *aout_VisualChange( vlc_object_t *p_this, int i_skip )
 {
     (void)p_this; (void)i_skip;
+    msg_Err( p_this, "FIXME: %s (%s %d) isn't implemented.", __func__,
+             __FILE__, __LINE__ );
     return strdup("foobar");
 }
     return strdup("foobar");
 }