/*****************************************************************************
* Preamble
*****************************************************************************/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <vlc/vlc.h>
#include <stdio.h>
#include <stdlib.h>
{
/* Special "intf-change" variable, it allows intf to set up a callback
* to be notified of some changes.
+ *
+ * Add rate-change to inform about rate changin
+ *
* 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 );
+ var_Create( p_input, "rate-change", VLC_VAR_BOOL );
+ var_SetBool( p_input, "rate-change", VLC_TRUE );
}
#undef ADD_CALLBACK
}
var_Change( p_input, val.psz_string, VLC_VAR_ADDCHOICE,
&val2, &text2 );
- if( text2.psz_string ) free( text2.psz_string );
+ free( text2.psz_string );
}
}
}
var_Change( p_input, "chapter", VLC_VAR_ADDCHOICE, &val, &text );
- if( text.psz_string ) free( text.psz_string );
+ free( text.psz_string );
}
}
var_Create( p_input, "seekable", VLC_VAR_BOOL );
val.b_bool = VLC_TRUE; /* Fixed later*/
var_Change( p_input, "seekable", VLC_VAR_SETVALUE, &val, NULL );
+ var_Create( p_input, "can-pause", VLC_VAR_BOOL );
+ val.b_bool = VLC_TRUE; /* Fixed later*/
+ var_Change( p_input, "can-pause", VLC_VAR_SETVALUE, &val, NULL );
/* */
var_Create( p_input, "access-filter", VLC_VAR_STRING | VLC_VAR_DOINHERIT );