"input-repeat=-1" not working

This forum is about all development around libVLC.
MikOfClassX
Blank Cone
Blank Cone
Posts: 48
Joined: 29 Dec 2018 10:23

"input-repeat=-1" not working

Postby MikOfClassX » 29 Mar 2019 12:51

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;

-------------------

Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 17 guests