Commit 95cfb0e3 authored by Adrien Maglo's avatar Adrien Maglo

Vout: add a new vout_window type for android native windows

parent 348fbb56
......@@ -45,6 +45,7 @@ enum {
VOUT_WINDOW_TYPE_XID,
VOUT_WINDOW_TYPE_HWND,
VOUT_WINDOW_TYPE_NSOBJECT,
VOUT_WINDOW_TYPE_ANDROID_NATIVE,
};
/**
......@@ -87,9 +88,10 @@ struct vout_window_t {
* It must be filled in the open function.
*/
union {
void *hwnd; /* Win32 window handle */
uint32_t xid; /* X11 windows ID */
void *nsobject; /* Mac OSX view object */
void *hwnd; /* Win32 window handle */
uint32_t xid; /* X11 windows ID */
void *nsobject; /* Mac OSX view object */
void *anativewindow; /* Android native window. */
} handle;
/* display server (mandatory) */
......
......@@ -82,6 +82,10 @@ vout_window_t *vout_window_New(vlc_object_t *obj,
window->handle.xid = 0;
window->display.x11 = NULL;
break;
case VOUT_WINDOW_TYPE_ANDROID_NATIVE:
type = "vout window anative";
window->handle.anativewindow = NULL;
break;
default:
assert(0);
}
......
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