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

windowsless: Simplfications

parent d65a00f0
......@@ -54,7 +54,7 @@ public:
//for libvlc_video_set_callbacks
void* video_lock_cb(void **planes);
void video_display_cb(void *picture);
virtual void video_display_cb(void *picture);
//end (for libvlc_video_set_callbacks)
static void invalidate_window_proxy(void *opaque)
......
......@@ -334,14 +334,3 @@ void VlcWindowlessMac::video_display_cb(void * /*picture*/)
invalidate_window();
}
}
void VlcWindowlessMac::set_player_window() {
libvlc_video_set_format_callbacks(getMD(),
video_format_proxy,
video_cleanup_proxy);
libvlc_video_set_callbacks(getMD(),
video_lock_proxy,
video_unlock_proxy,
video_display_proxy,
this);
}
......@@ -34,11 +34,7 @@ public:
bool handle_event(void *event);
NPError get_root_layer(void *value);
void video_display_cb(void *picture);
void set_player_window();
static void video_display_proxy(void *opaque, void *picture)
{ reinterpret_cast<VlcWindowlessMac*>(opaque)->video_display_cb(picture); }
virtual void video_display_cb(void *picture) override;
protected:
void drawNoPlayback(CGContextRef cgContext);
......
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