[vlc-devel] commit: Remove VOD object type - not actually needed ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sat Mar 29 10:30:21 CET 2008
vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Sat Mar 29 11:04:54 2008 +0200| [9a867d7368d79640b21dd6f5a7f4205a8bb06ccc]
Remove VOD object type - not actually needed
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9a867d7368d79640b21dd6f5a7f4205a8bb06ccc
---
include/vlc_objects.h | 2 +-
modules/misc/lua/objects.c | 1 -
src/input/vlm.c | 4 +++-
src/misc/objects.c | 5 -----
4 files changed, 4 insertions(+), 8 deletions(-)
diff --git a/include/vlc_objects.h b/include/vlc_objects.h
index b9d9a94..400bbc8 100644
--- a/include/vlc_objects.h
+++ b/include/vlc_objects.h
@@ -58,7 +58,7 @@
#define VLC_OBJECT_STREAM (-20)
#define VLC_OBJECT_OPENGL (-21)
#define VLC_OBJECT_FILTER (-22)
-#define VLC_OBJECT_VOD (-23)
+
#define VLC_OBJECT_SPU (-24)
#define VLC_OBJECT_SD (-26)
diff --git a/modules/misc/lua/objects.c b/modules/misc/lua/objects.c
index 188d4ea..75481cc 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_VOD, "vod" },
{ VLC_OBJECT_SPU, "spu" },
{ VLC_OBJECT_SD, "sd" },
{ VLC_OBJECT_XML, "xml" },
diff --git a/src/input/vlm.c b/src/input/vlm.c
index b70bdde..230259f 100644
--- a/src/input/vlm.c
+++ b/src/input/vlm.c
@@ -2331,7 +2331,9 @@ static int vlm_ControlMediaAdd( vlm_t *p_vlm, vlm_media_t *p_cfg, int64_t *p_id
/* Check if we need to load the VOD server */
if( p_cfg->b_vod && !p_vlm->i_vod )
{
- p_vlm->p_vod = vlc_object_create( p_vlm, VLC_OBJECT_VOD );
+ p_vlm->p_vod = vlc_custom_create( VLC_OBJECT(p_vlm),
+ sizeof( p_vlm->p_vod ),
+ VLC_OBJECT_GENERIC, "vod server" );
vlc_object_attach( p_vlm->p_vod, p_vlm );
p_vlm->p_vod->p_module = module_Need( p_vlm->p_vod, "vod server", 0, 0 );
if( !p_vlm->p_vod->p_module )
diff --git a/src/misc/objects.c b/src/misc/objects.c
index 4e5127c..dacc3a6 100644
--- a/src/misc/objects.c
+++ b/src/misc/objects.c
@@ -56,7 +56,6 @@
#include "vlc_httpd.h"
#include "vlc_vlm.h"
#include "input/vlm_internal.h"
-#include "vlc_vod.h"
#include "vlc_tls.h"
#include "vlc_xml.h"
#include "vlc_osd.h"
@@ -320,10 +319,6 @@ void * __vlc_object_create( vlc_object_t *p_this, int i_type )
i_size = sizeof( vlm_t );
psz_type = "vlm dameon";
break;
- case VLC_OBJECT_VOD:
- i_size = sizeof( vod_t );
- psz_type = "vod server";
- break;
case VLC_OBJECT_XML:
i_size = sizeof( xml_t );
psz_type = "xml";
More information about the vlc-devel
mailing list