in vlc-android ,i have below function :
Code: Select all
int libvlc_record_start( libvlc_media_player_t *p_mi, const char* psz_filename )
{
input_thread_t *p_input_thread;
p_input_thread = libvlc_get_input_thread( p_mi );
if( !p_input_thread )
return -1;
var_SetString( p_input_thread, "input-record-path", psz_filename );
var_SetBool( p_input_thread, "record", true );
vlc_object_release( p_input_thread );
return 0;
}
Code: Select all
int libvlc_record_stop( libvlc_media_player_t *p_mi )
{
input_thread_t *p_input_thread;
p_input_thread = libvlc_get_input_thread( p_mi );
if( !p_input_thread )
return -1;
var_SetBool( p_input_thread, "record", false );
vlc_object_release( p_input_thread );
return 0;
}
if can't use var_SetBool( p_input_thread, "record", false ) to stop record?