[vlc-devel] commit: Remove SPU type ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat Mar 29 10:30:23 CET 2008


vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Sat Mar 29 11:10:35 2008 +0200| [182f9a350d8d162047b7ec587a1c1658efc81cfb]

Remove SPU type

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

 include/vlc_objects.h               |    2 +-
 modules/misc/lua/objects.c          |    1 -
 src/misc/objects.c                  |    4 ----
 src/video_output/vout_subpictures.c |    3 ++-
 4 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/include/vlc_objects.h b/include/vlc_objects.h
index 400bbc8..1511427 100644
--- a/include/vlc_objects.h
+++ b/include/vlc_objects.h
@@ -59,7 +59,7 @@
 #define VLC_OBJECT_OPENGL      (-21)
 #define VLC_OBJECT_FILTER      (-22)
 
-#define VLC_OBJECT_SPU         (-24)
+
 
 #define VLC_OBJECT_SD          (-26)
 #define VLC_OBJECT_XML         (-27)
diff --git a/modules/misc/lua/objects.c b/modules/misc/lua/objects.c
index 75481cc..bf53676 100644
--- a/modules/misc/lua/objects.c
+++ b/modules/misc/lua/objects.c
@@ -128,7 +128,6 @@ static int vlc_object_type_from_string( const char *psz_name )
           { VLC_OBJECT_STREAM, "stream" },
           { VLC_OBJECT_OPENGL, "opengl" },
           { VLC_OBJECT_FILTER, "filter" },
-          { VLC_OBJECT_SPU, "spu" },
           { VLC_OBJECT_SD, "sd" },
           { VLC_OBJECT_XML, "xml" },
           { VLC_OBJECT_OSDMENU, "osdmenu" },
diff --git a/src/misc/objects.c b/src/misc/objects.c
index 74fa15c..b1d4aea 100644
--- a/src/misc/objects.c
+++ b/src/misc/objects.c
@@ -302,10 +302,6 @@ void * __vlc_object_create( vlc_object_t *p_this, int i_type )
             i_size = sizeof(vout_thread_t);
             psz_type = "video output";
             break;
-        case VLC_OBJECT_SPU:
-            i_size = sizeof(spu_t);
-            psz_type = "subpicture";
-            break;
         case VLC_OBJECT_AOUT:
             i_size = sizeof(aout_instance_t);
             psz_type = "audio output";
diff --git a/src/video_output/vout_subpictures.c b/src/video_output/vout_subpictures.c
index 6531492..d9065df 100644
--- a/src/video_output/vout_subpictures.c
+++ b/src/video_output/vout_subpictures.c
@@ -76,7 +76,8 @@ enum {
 spu_t *__spu_Create( vlc_object_t *p_this )
 {
     int i_index;
-    spu_t *p_spu = vlc_object_create( p_this, VLC_OBJECT_SPU );
+    spu_t *p_spu = vlc_custom_create( p_this, sizeof( spu_t ),
+                                      VLC_OBJECT_GENERIC, "subpicture" );
 
     for( i_index = 0; i_index < VOUT_MAX_SUBPICTURES; i_index++)
     {




More information about the vlc-devel mailing list