Commit aa4bc80b authored by Antoine Cellerier's avatar Antoine Cellerier

Add "vbi-page" control in the rc interface (don't put any argument to retreive...

Add "vbi-page" control in the rc interface (don't put any argument to retreive the current page number).
parent 82f5e1b5
......@@ -449,6 +449,9 @@ static void RegisterCallbacks( intf_thread_t *p_intf )
VLC_VAR_INTEGER | VLC_VAR_ISCOMMAND );
var_AddCallback( p_intf, "mosaic-keep-aspect-ratio", Other, NULL );
var_Create( p_intf, "vbi-page", VLC_VAR_INTEGER | VLC_VAR_ISCOMMAND );
var_AddCallback( p_intf, "vbi-page", Other, NULL );
/* time on the fly items */
var_Create( p_intf, "time-format", VLC_VAR_VOID | VLC_VAR_ISCOMMAND );
var_AddCallback( p_intf, "time-format", Other, NULL );
......@@ -1005,6 +1008,8 @@ static void Help( intf_thread_t *p_intf, vlc_bool_t b_longhelp)
msg_rc(_("| mosaic-cols #. . . . . . . . . . .number of cols"));
msg_rc(_("| mosaic-keep-aspect-ratio {0,1} . . .aspect ratio"));
msg_rc( "| ");
msg_rc(_("| vbi-page # . . . .set the vbi page number (telx)"));
msg_rc( "| ");
msg_rc(_("| check-updates [newer] [equal] [older]\n"
"| [undef] [info] [source] [binary] [plugin]"));
msg_rc( "| ");
......@@ -1798,6 +1803,19 @@ static int Other( vlc_object_t *p_this, char const *psz_cmd,
var_Set( p_input->p_libvlc, "logo-transparency", val );
}
}
else if( !strcmp( psz_cmd, "vbi-page" ) )
{
if( strlen( newval.psz_string ) > 0 )
{
val.i_int = strtol( newval.psz_string, NULL, 0 );
var_Set( p_input->p_libvlc, "vbi-page", val );
}
else
{
msg_rc( "vbi page is %d.",
var_GetInteger( p_input->p_libvlc, "vbi-page" ) );
}
}
/*
* sanity check
......
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