[vlc-devel] commit: smem: no need to create the variables as config_ChainParse is already creating them . ( Rémi Duraffort )
git version control
git at videolan.org
Sat Dec 5 12:22:49 CET 2009
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sat Dec 5 12:06:25 2009 +0100| [2a3eb9441512c1e07943892293cac83cd3ebf3cf] | committer: Rémi Duraffort
smem: no need to create the variables as config_ChainParse is already creating them.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2a3eb9441512c1e07943892293cac83cd3ebf3cf
---
modules/stream_out/smem.c | 14 +++++---------
1 files changed, 5 insertions(+), 9 deletions(-)
diff --git a/modules/stream_out/smem.c b/modules/stream_out/smem.c
index 0db6774..8c504d4 100644
--- a/modules/stream_out/smem.c
+++ b/modules/stream_out/smem.c
@@ -164,28 +164,24 @@ static int Open( vlc_object_t *p_this )
config_ChainParse( p_stream, SOUT_CFG_PREFIX, ppsz_sout_options,
p_stream->p_cfg );
- p_sys->time_sync = var_CreateGetBool( p_stream, SOUT_CFG_PREFIX "time-sync" );
+ p_sys->time_sync = var_GetBool( p_stream, SOUT_CFG_PREFIX "time-sync" );
- psz_tmp = var_CreateGetString( p_stream, SOUT_PREFIX_VIDEO "prerender-callback" );
+ psz_tmp = var_GetString( p_stream, SOUT_PREFIX_VIDEO "prerender-callback" );
p_sys->pf_video_prerender_callback = (void (*) (void *, uint8_t**, int))(intptr_t)atoll( psz_tmp );
free( psz_tmp );
- psz_tmp = var_CreateGetString( p_stream, SOUT_PREFIX_AUDIO "prerender-callback" );
+ psz_tmp = var_GetString( p_stream, SOUT_PREFIX_AUDIO "prerender-callback" );
p_sys->pf_audio_prerender_callback = (void (*) (void* , uint8_t**, unsigned int))(intptr_t)atoll( psz_tmp );
free( psz_tmp );
- psz_tmp = var_CreateGetString( p_stream, SOUT_PREFIX_VIDEO "postrender-callback" );
+ psz_tmp = var_GetString( p_stream, SOUT_PREFIX_VIDEO "postrender-callback" );
p_sys->pf_video_postrender_callback = (void (*) (void*, uint8_t*, int, int, int, int, mtime_t))(intptr_t)atoll( psz_tmp );
free( psz_tmp );
- psz_tmp = var_CreateGetString( p_stream, SOUT_PREFIX_AUDIO "postrender-callback" );
+ psz_tmp = var_GetString( p_stream, SOUT_PREFIX_AUDIO "postrender-callback" );
p_sys->pf_audio_postrender_callback = (void (*) (void*, uint8_t*, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, mtime_t))(intptr_t)atoll( psz_tmp );
free( psz_tmp );
- /* Create the remaining variables for a later use */
- var_Create( p_stream, SOUT_PREFIX_VIDEO "data", VLC_VAR_STRING | VLC_VAR_DOINHERIT );
- var_Create( p_stream, SOUT_PREFIX_AUDIO "data", VLC_VAR_STRING | VLC_VAR_DOINHERIT );
-
/* Setting stream out module callbacks */
p_stream->pf_add = Add;
p_stream->pf_del = Del;
More information about the vlc-devel
mailing list