b_video = false;
timeA = 0;
timeB = 0;
-
+ f_cache = -1.; /* impossible initial value, different from all */
}
InputManager::~InputManager()
InputManager *im = (InputManager*)param;
IMEvent *event = new IMEvent( ItemChanged_Type, newval.i_int );
- QApplication::postEvent( im, static_cast<QEvent*>(event) );
+ QApplication::postEvent( im, event );
return VLC_SUCCESS;
}
}
if( event )
- QApplication::postEvent( im, static_cast<QEvent*>(event) );
+ QApplication::postEvent( im, event );
return VLC_SUCCESS;
}
void InputManager::UpdatePosition()
var_Change( THEPL, "playlist-current", VLC_VAR_CHOICESCOUNT, &val, NULL );
IMEvent *event = new IMEvent( ItemChanged_Type, val.i_int);
- customEvent( static_cast<QEvent*>(event) );
+ customEvent( event );
+ delete event;
}
MainInputManager::~MainInputManager()
MainInputManager *mim = (MainInputManager*)param;
IMEvent *event = new IMEvent( ItemChanged_Type, newval.i_int );
- QApplication::postEvent( mim, static_cast<QEvent*>(event) );
+ QApplication::postEvent( mim, event );
return VLC_SUCCESS;
}
MainInputManager *mim = (MainInputManager*)param;
IMEvent *event = new IMEvent( VolumeChanged_Type, newval.i_int );
- QApplication::postEvent( mim, static_cast<QEvent*>(event) );
+ QApplication::postEvent( mim, event );
return VLC_SUCCESS;
}