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 0d769a0..3076401 100644 (file)
 #include <assert.h>
 
 #include <vlc_common.h>
 #include <assert.h>
 
 #include <vlc_common.h>
-#include <vlc_plugin.h>
 #include <vlc_vout_window.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 *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;
     window->cfg = cfg;
     memset(&window->handle, 0, sizeof(window->handle));
     window->control = NULL;