Remove SPU type
authorRémi Denis-Courmont <rem@videolan.org>
Sat, 29 Mar 2008 09:10:35 +0000 (11:10 +0200)
committerRémi Denis-Courmont <rem@videolan.org>
Sat, 29 Mar 2008 09:10:35 +0000 (11:10 +0200)
include/vlc_objects.h
modules/misc/lua/objects.c
src/misc/objects.c
src/video_output/vout_subpictures.c

index 400bbc8..1511427 100644 (file)
@@ -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)
index 75481cc..bf53676 100644 (file)
@@ -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" },
index 74fa15c..b1d4aea 100644 (file)
@@ -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";
index 6531492..d9065df 100644 (file)
@@ -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++)
     {