Commit 4714a75c authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

ActiveX: use float for position event

Ref #11485
parent 23fa2660
......@@ -226,7 +226,7 @@ library AXVLC
[id(DISPID_MediaPlayerTimeChangedEvent), helpstring("Time changed")]
void MediaPlayerTimeChanged([in] long time);
[id(DISPID_MediaPlayerPositionChangedEvent), helpstring("Position changed")]
void MediaPlayerPositionChanged([in] long position);
void MediaPlayerPositionChanged([in] float position);
[id(DISPID_MediaPlayerSeekableChangedEvent), helpstring("Seek changed")]
void MediaPlayerSeekableChanged([in] VARIANT_BOOL seekable);
[id(DISPID_MediaPlayerPausableChangedEvent), helpstring("Pause setting changed")]
......
......@@ -1139,8 +1139,8 @@ void VLCPlugin::fireOnMediaPlayerPositionChangedEvent(float position)
params.cArgs = 1;
params.rgvarg = (VARIANTARG *) CoTaskMemAlloc(sizeof(VARIANTARG) * params.cArgs) ;
memset(params.rgvarg, 0, sizeof(VARIANTARG) * params.cArgs);
params.rgvarg[0].vt = VT_I4;
params.rgvarg[0].lVal = static_cast<LONG>(position);
params.rgvarg[0].vt = VT_R4;
params.rgvarg[0].fltVal = position;
params.rgdispidNamedArgs = NULL;
params.cNamedArgs = 0;
vlcConnectionPointContainer->fireEvent(DISPID_MediaPlayerPositionChangedEvent, &params);
......
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