trying to load a playlist with bookmarks

*nix specific usage questions
usetoiletpaper
Blank Cone
Blank Cone
Posts: 10
Joined: 12 Jul 2010 20:29

trying to load a playlist with bookmarks

Postby usetoiletpaper » 12 Jul 2010 20:38

I'm trying to load playlists which has bookmarks and I get this error:

unsafe option "bookmarks" has been ignored for security reasons

Is there a way of overriding this? I've been surfing the internet looking for similar cases. The closest article I found suggested that I add the parameter "--m3u-extvlcopt" but my vlc is complaining that it can't recognize it.

Thanks,
Melany

Update:
I found a workaround:
* i editted input.c found in folder <vlc-directory>/src/input.
* Edit lines 407-408. Replace the "trusted" parameter (last parameter): var_OptionParse( VLC_OBJECT(p_input), p_item->ppsz_options, 1);)

Happy with my bookmarks now. ^_^

Is there any bad consequences I should expect?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37519
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: trying to load a playlist with bookmarks

Postby Jean-Baptiste Kempf » 16 Jul 2010 15:01

You shouldn't do that.
Try this:

Code: Select all

diff --git a/src/libvlc-module.c b/src/libvlc-module.c index de04ee2..e786ba7 100644 --- a/src/libvlc-module.c +++ b/src/libvlc-module.c @@ -1855,6 +1855,7 @@ vlc_module_begin () add_string( "bookmarks", NULL, NULL, BOOKMARKS_TEXT, BOOKMARKS_LONGTEXT, true ) + change_safe () set_section( N_( "Default devices") , NULL )
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

usetoiletpaper
Blank Cone
Blank Cone
Posts: 10
Joined: 12 Jul 2010 20:29

Re: trying to load a playlist with bookmarks

Postby usetoiletpaper » 27 Jul 2010 00:15

Okie. Yay. That worked. Thanks. :D
Hoping for better documentation. >_<


Btw, there was another problem I hacked through. Bookmarks were kinda working at first and then fails....all bookmarks suddenly points at one similar point. Edited input.c again. In the switch case for INPUT_CONTROL_SET_BOOKMARK, I changed the if-else statement there to prioritize the use of byte-offset instead of the time-offset. Time-offset wasn't working for me.

keneo
New Cone
New Cone
Posts: 1
Joined: 02 Aug 2010 16:13

Re: trying to load a playlist with bookmarks

Postby keneo » 02 Aug 2010 16:35

Isn't there a way to fix the bookmark issue without requiring me to change the program code and recompile my own customized version of vlc? Couldn't you guys just bring back the option for enabling extvlcopt parsing with a warning?
saving muliple bookmarks is one of the coolest things I have seen in a player. I need to have that back!

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37519
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: trying to load a playlist with bookmarks

Postby Jean-Baptiste Kempf » 02 Aug 2010 18:23

It will be in 1.2.0
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 2 guests