Commit a9a95bce authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix size of VOD objects

parent a9d773c1
...@@ -121,7 +121,7 @@ vlm_t *__vlm_New ( vlc_object_t *p_this ) ...@@ -121,7 +121,7 @@ vlm_t *__vlm_New ( vlc_object_t *p_this )
msg_Dbg( p_this, "creating VLM" ); msg_Dbg( p_this, "creating VLM" );
p_vlm = vlc_custom_create( p_this, sizeof( *p_vlm), VLC_OBJECT_VLM, p_vlm = vlc_custom_create( p_this, sizeof( *p_vlm ), VLC_OBJECT_VLM,
vlm_object_name ); vlm_object_name );
if( !p_vlm ) if( !p_vlm )
{ {
...@@ -2334,8 +2334,7 @@ static int vlm_ControlMediaAdd( vlm_t *p_vlm, vlm_media_t *p_cfg, int64_t *p_id ...@@ -2334,8 +2334,7 @@ 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 */ /* Check if we need to load the VOD server */
if( p_cfg->b_vod && !p_vlm->i_vod ) if( p_cfg->b_vod && !p_vlm->i_vod )
{ {
p_vlm->p_vod = vlc_custom_create( VLC_OBJECT(p_vlm), p_vlm->p_vod = vlc_custom_create( VLC_OBJECT(p_vlm), sizeof( vod_t ),
sizeof( p_vlm->p_vod ),
VLC_OBJECT_GENERIC, "vod server" ); VLC_OBJECT_GENERIC, "vod server" );
vlc_object_attach( p_vlm->p_vod, p_vlm ); 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 ); p_vlm->p_vod->p_module = module_Need( p_vlm->p_vod, "vod server", 0, 0 );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment