]> git.sesse.net Git - vlc/commitdiff
Provide a type name for window objects
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 17 Oct 2009 17:34:08 +0000 (20:34 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 17 Oct 2009 17:34:28 +0000 (20:34 +0300)
src/video_output/window.c

index 0d769a0ed108e1216b7ec6afc8a32b41e4ffff0b..3076401bc4015e22d0587fa0accbfdb13b73a5e6 100644 (file)
 #include <assert.h>
 
 #include <vlc_common.h>
-#include <vlc_plugin.h>
 #include <vlc_vout_window.h>
+#include <libvlc.h>
 
 vout_window_t *vout_window_New(vlc_object_t *obj,
                                const char *module,
                                const vout_window_cfg_t *cfg)
 {
-    vout_window_t *window = vlc_object_create(obj, sizeof(*window));
-
+    static char const name[] = "window";
+    vout_window_t *window = vlc_custom_create(obj, sizeof(*window),
+                                              VLC_OBJECT_GENERIC, name);
     window->cfg = cfg;
     memset(&window->handle, 0, sizeof(window->handle));
     window->control = NULL;