Commit 78b7e389 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Fix input_mnager behaviour to what it was intended. Patch idea by Dylan.

parent 7ee84d75
......@@ -581,7 +581,7 @@ static int InterfaceChanged( vlc_object_t *p_this, const char *psz_var,
static int counter = 0;
InputManager *im = (InputManager*)param;
counter = counter++ % 4;
counter = ++counter % 4;
if(!counter)
return VLC_SUCCESS;
IMEvent *event = new IMEvent( PositionUpdate_Type, 0 );
......@@ -590,7 +590,7 @@ static int InterfaceChanged( vlc_object_t *p_this, const char *psz_var,
}
static int ItemStateChanged( vlc_object_t *p_this, const char *psz_var,
vlc_value_t oldval, vlc_value_t newval, void *param )
vlc_value_t oldval, vlc_value_t newval, void *param )
{
InputManager *im = (InputManager*)param;
......@@ -600,17 +600,17 @@ static int ItemStateChanged( vlc_object_t *p_this, const char *psz_var,
}
static int ItemRateChanged( vlc_object_t *p_this, const char *psz_var,
vlc_value_t oldval, vlc_value_t newval, void *param )
vlc_value_t oldval, vlc_value_t newval, void *param )
{
InputManager *im = (InputManager*)param;
IMEvent *event = new IMEvent( ItemRateChanged_Type, 0 );
QApplication::postEvent( im, static_cast<QEvent*>(event) );
return VLC_SUCCESS;
}
static int ItemTitleChanged( vlc_object_t *p_this, const char *psz_var,
vlc_value_t oldval, vlc_value_t newval, void *param )
vlc_value_t oldval, vlc_value_t newval, void *param )
{
InputManager *im = (InputManager*)param;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment