diff --git a/modules/control/rc.c b/modules/control/rc.c index 326c22d123d7c60f09c6bd0abd2e4a414d4a5720..6696d9a3b06059b63b30e659bf68f8178aefa75e 100644 --- a/modules/control/rc.c +++ b/modules/control/rc.c @@ -890,12 +890,12 @@ static int Other( vlc_object_t *p_this, char const *psz_cmd, if( strlen( newval.psz_string ) > 0 ) { val.psz_string = newval.psz_string; - var_Set( p_inp, "marq-marquee", val ); + var_Set( p_inp->p_libvlc, "marq-marquee", val ); } else { val.psz_string = ""; - var_Set( p_inp, "marq-marquee", val); + var_Set( p_inp->p_libvlc, "marq-marquee", val); } } else if( !strcmp( psz_cmd, "marq-x" ) ) @@ -903,7 +903,7 @@ static int Other( vlc_object_t *p_this, char const *psz_cmd, if( strlen( newval.psz_string ) > 0) { val.i_int = atoi( newval.psz_string ); - var_Set( p_inp, "marq-x", val ); + var_Set( p_inp->p_libvlc, "marq-x", val ); } } else if( !strcmp( psz_cmd, "marq-y" ) ) @@ -911,7 +911,7 @@ static int Other( vlc_object_t *p_this, char const *psz_cmd, if( strlen( newval.psz_string ) > 0) { val.i_int = atoi( newval.psz_string ); - var_Set( p_inp, "marq-y", val ); + var_Set( p_inp->p_libvlc, "marq-y", val ); } } else if( !strcmp( psz_cmd, "marq-timeout" ) ) diff --git a/modules/video_filter/logo.c b/modules/video_filter/logo.c index 566a51794d606b144d11ba9a2079f992c107a488..8a1988e62490b714d8bda60d1f1303c7c1f72bbe 100644 --- a/modules/video_filter/logo.c +++ b/modules/video_filter/logo.c @@ -573,7 +573,7 @@ static int CreateFilter( vlc_object_t *p_this ) return VLC_ENOOBJ; } - p_sys->psz_filename = var_CreateGetString( p_input , "logo-file" ); + p_sys->psz_filename = var_CreateGetString( p_input->p_libvlc , "logo-file" ); if( !p_sys->psz_filename || !*p_sys->psz_filename ) { msg_Err( p_this, "logo file not specified" ); @@ -582,17 +582,17 @@ static int CreateFilter( vlc_object_t *p_this ) return 0; } - p_sys->posx = var_CreateGetInteger( p_input , "logo-x" ); - p_sys->posy = var_CreateGetInteger( p_input , "logo-y" ); - p_sys->pos = var_CreateGetInteger( p_input , "logo-position" ); - p_sys->i_trans = var_CreateGetInteger( p_input, "logo-transparency"); + p_sys->posx = var_CreateGetInteger( p_input->p_libvlc , "logo-x" ); + p_sys->posy = var_CreateGetInteger( p_input->p_libvlc , "logo-y" ); + p_sys->pos = var_CreateGetInteger( p_input->p_libvlc , "logo-position" ); + p_sys->i_trans = var_CreateGetInteger( p_input->p_libvlc, "logo-transparency"); p_sys->i_trans = __MAX( __MIN( p_sys->i_trans, 255 ), 0 ); - var_AddCallback( p_input, "logo-file", LogoCallback, p_sys ); - var_AddCallback( p_input, "logo-x", LogoCallback, p_sys ); - var_AddCallback( p_input, "logo-y", LogoCallback, p_sys ); - var_AddCallback( p_input, "logo-position", LogoCallback, p_sys ); - var_AddCallback( p_input, "logo-transparency", LogoCallback, p_sys ); + var_AddCallback( p_input->p_libvlc, "logo-file", LogoCallback, p_sys ); + var_AddCallback( p_input->p_libvlc, "logo-x", LogoCallback, p_sys ); + var_AddCallback( p_input->p_libvlc, "logo-y", LogoCallback, p_sys ); + var_AddCallback( p_input->p_libvlc, "logo-position", LogoCallback, p_sys ); + var_AddCallback( p_input->p_libvlc, "logo-transparency", LogoCallback, p_sys ); vlc_object_release( p_input ); p_sys->b_absolute = VLC_TRUE; @@ -639,11 +639,11 @@ static void DestroyFilter( vlc_object_t *p_this ) p_input = vlc_object_find( p_this, VLC_OBJECT_INPUT, FIND_PARENT ); if( !p_input ) return; - var_Destroy( p_input , "logo-file" ); - var_Destroy( p_input , "logo-x" ); - var_Destroy( p_input , "logo-y" ); - var_Destroy( p_input , "logo-position" ); - var_Destroy( p_input , "logo-transparency" ); + var_Destroy( p_input->p_libvlc , "logo-file" ); + var_Destroy( p_input->p_libvlc , "logo-x" ); + var_Destroy( p_input->p_libvlc , "logo-y" ); + var_Destroy( p_input->p_libvlc , "logo-position" ); + var_Destroy( p_input->p_libvlc , "logo-transparency" ); vlc_object_release( p_input ); } diff --git a/modules/video_filter/marq.c b/modules/video_filter/marq.c index 1fe76dfe5125ee2df0dd4b7f2ac4a00a2e9550b0..02cb1d33fac5317882bbf676543ae8fb015127f1 100755 --- a/modules/video_filter/marq.c +++ b/modules/video_filter/marq.c @@ -104,23 +104,22 @@ static int CreateFilter( vlc_object_t *p_this ) return VLC_ENOMEM; } - /* hook to the playlist */ + /* Hook used for callback variables */ p_input = vlc_object_find( p_this, VLC_OBJECT_INPUT, FIND_ANYWHERE ); if( !p_input ) { return VLC_ENOOBJ; } -/* p_access->p_libvlc p_demux->p_libvlc */ - p_sys->i_xoff = var_CreateGetInteger( p_input , "marq-x" ); - p_sys->i_yoff = var_CreateGetInteger( p_input , "marq-y" ); - p_sys->i_timeout = var_CreateGetInteger( p_input , "marq-timeout" ); - p_sys->psz_marquee = var_CreateGetString( p_input, "marq-marquee" ); + p_sys->i_xoff = var_CreateGetInteger( p_input->p_libvlc , "marq-x" ); + p_sys->i_yoff = var_CreateGetInteger( p_input->p_libvlc , "marq-y" ); + p_sys->i_timeout = var_CreateGetInteger( p_input->p_libvlc , "marq-timeout" ); + p_sys->psz_marquee = var_CreateGetString( p_input->p_libvlc, "marq-marquee" ); - var_AddCallback( p_input, "marq-x", MarqueeCallback, p_sys ); - var_AddCallback( p_input, "marq-y", MarqueeCallback, p_sys ); - var_AddCallback( p_input, "marq-marquee", MarqueeCallback, p_sys ); - var_AddCallback( p_input, "marq-timeout", MarqueeCallback, p_sys ); + var_AddCallback( p_input->p_libvlc, "marq-x", MarqueeCallback, p_sys ); + var_AddCallback( p_input->p_libvlc, "marq-y", MarqueeCallback, p_sys ); + var_AddCallback( p_input->p_libvlc, "marq-marquee", MarqueeCallback, p_sys ); + var_AddCallback( p_input->p_libvlc, "marq-timeout", MarqueeCallback, p_sys ); vlc_object_release( p_input ); @@ -149,10 +148,10 @@ static void DestroyFilter( vlc_object_t *p_this ) { return; } - var_Destroy( p_input , "marq-marquee" ); - var_Destroy( p_input , "marq-x" ); - var_Destroy( p_input , "marq-y" ); - var_Destroy( p_input , "marq-timeout" ); + var_Destroy( p_input->p_libvlc , "marq-marquee" ); + var_Destroy( p_input->p_libvlc , "marq-x" ); + var_Destroy( p_input->p_libvlc , "marq-y" ); + var_Destroy( p_input->p_libvlc , "marq-timeout" ); vlc_object_release( p_input ); }