[vlc-devel] [PATCH 1/2] ActiveX: fireOnMediaPlayerBufferingEvent/fireOnMediaPlayerTimeChangedEvent/fireOnMediaPlayerPositionChangedEvent small fix

Sergey Radionov rsatom at gmail.com
Thu Nov 17 11:55:37 CET 2011


sorry, not dynamic_cast - reinterpret_cast

17 ноября 2011 г. 17:34 пользователь Sergey Radionov <rsatom at gmail.com>написал:

> But not, it has one more:
> "C cast" is closer to C++ dynamic_cast<>, then to static_cast<>. So it
> allow catch problems when static_cast's argument type changed to
> inconsistent with <destination type> (it will be compilation error), but "C
> cast" will not show even warning...
>
> 17 ноября 2011 г. 16:37 пользователь Sergey Radionov <rsatom at gmail.com>написал:
>
> Because, I think it is .cpp file, not .c :) and nothing more...
>>
>> 17.11.2011 16:16, Jean-Baptiste Kempf пишет:
>>
>>  On Thu, Nov 17, 2011 at 11:51:45AM +0700, Sergey Radionov wrote :
>>>
>>>> Changed argument of
>>>> fireOnMediaPlayerBufferingEven**t\**fireOnMediaPlayerPositionChang**edEvent
>>>> to
>>>> float
>>>> fireOnMediaPlayerTimeChangedEv**ent to libvlc_time_t
>>>> (as it come in corresponding libvlc_event_t)
>>>>
>>>
>>> Why static_cast and not normal C casts?
>>>
>>> Best Regards,
>>>
>>>
>> --
>> With best wishes,
>> Sergey Radionov
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20111117/f6bd6fcb/attachment.html>


More information about the vlc-devel mailing list