Commit a3435f15 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

npapi: windowless_base: Replace noop function by nullptr

parent 84ccc9b2
......@@ -78,10 +78,6 @@ void* VlcWindowlessBase::video_lock_cb(void **planes)
return 0;
}
void VlcWindowlessBase::video_unlock_cb(void* /*picture*/, void *const * /*planes*/)
{
}
void VlcWindowlessBase::invalidate_window()
{
NPRect rect;
......@@ -114,9 +110,7 @@ void VlcWindowlessBase::set_player_window() {
getMD().setVideoCallbacks([this](void** planes) {
return video_lock_cb( planes );
},
[this]( void* picture, void* const* planes ) {
video_unlock_cb( picture, planes );
},
nullptr,
[this](void* picture) {
video_display_cb( picture );
});
......
......@@ -54,7 +54,6 @@ public:
//for libvlc_video_set_callbacks
void* video_lock_cb(void **planes);
void video_unlock_cb(void *picture, void *const *planes);
void video_display_cb(void *picture);
//end (for libvlc_video_set_callbacks)
......
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