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

Sergey Radionov rsatom at gmail.com
Thu Nov 17 11:34:27 CET 2011


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/01f77d06/attachment.html>


More information about the vlc-devel mailing list