Page 1 of 1

%n in Marquee string locks up VLC

Posted: 23 Jan 2018 18:00
by trindflo
I'm attempting to format a Marquee string. Apparently using the strftime escape sequences to create multiple lines is not a solution. I discovered while experimenting that using %n (newline) in the string will put VLC into some sort of loop. I may be going about things in the wrong manner, but there should be a warning about that particular sequence in the documentation.

I'm going to attempt multiple marquees now.

Re: %n in Marquee string locks up VLC

Posted: 24 Jan 2018 10:15
by chubinou
Hello,

I couldn't reproduce your problem

- what version of VLC do you use? Is the issue still present with the latest version (3.0-rc7 https://nightlies.videolan.org/build/win64/ )
- could you provide some logs?
- could you provide a sample string causing the issue

Re: %n in Marquee string locks up VLC

Posted: 24 Jan 2018 16:20
by mederi
vlc-3.0.0-20180122-0301-rc7-win32.7z
Tools > Effects and Filters > Video Effects > Overlay: [v] Add text, Text [VLC %]
Just wanted to test the time expansions (%Y, %m, %d, %H, %M, %S). If I start to write the string in the text input field during a video playback, VLC freezes as soon as I use the percent sign.

Re: %n in Marquee string locks up VLC

Posted: 25 Jan 2018 14:47
by chubinou
Ok found it,

thanks for the report :)

Re: %n in Marquee string locks up VLC

Posted: 25 Jan 2018 22:01
by RĂ©mi Denis-Courmont
%n is a POSIX extension, not a standard format specifier. Use newline directly.

Re: %n in Marquee string locks up VLC

Posted: 30 Jan 2018 14:52
by mederi
So it is not possible to break a marquee string into multiple lines, is it? I have tried to use \n like in osd message in Lua script, but to no avail. Html </ br> is not supported. Marquee from a text file can also display only the first line. I think it would be useful to support multiple lines in marquee strings.