[vlc-devel] commit: Provide a type name for window objects ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat Oct 17 19:34:31 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Oct 17 20:34:08 2009 +0300| [dc873d6a222af0e809e529ec04b2159481d89461] | committer: Rémi Denis-Courmont 

Provide a type name for window objects

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=dc873d6a222af0e809e529ec04b2159481d89461
---

 src/video_output/window.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/video_output/window.c b/src/video_output/window.c
index 0d769a0..3076401 100644
--- a/src/video_output/window.c
+++ b/src/video_output/window.c
@@ -30,15 +30,16 @@
 #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;




More information about the vlc-devel mailing list