Hello,
trying to setup a media to loop indefinitely, I used the "input-repeat=-1" media option.
Sadly it seems it's not working properly.
It seems I must use "input-repeat=65535" to enable the loop. But it's not very logic. Is it parsing unsigned numbers only ?
What about a libvlc_media_set_loop() api ?
Cheers,
Mik
--
Here's the probable bug
-------------------
> libvlc-module.c:
set_section( N_( "Playback control" ) , NULL)
add_integer( "input-repeat", 0,
INPUT_REPEAT_TEXT, INPUT_REPEAT_LONGTEXT, false )
change_integer_range( 0, 65535 )
change_safe ()
-------------------
--> src/input/input.c
static int MainLoopTryRepeat( input_thread_t *p_input )
{
int i_repeat = var_GetInteger( p_input, "input-repeat" );
if( i_repeat <= 0 )
return VLC_EGENERIC;
-------------------