libvlc_media_new mrl formatting

This forum is about all development around libVLC.
vaphil
Blank Cone
Blank Cone
Posts: 10
Joined: 01 Apr 2009 18:26

libvlc_media_new mrl formatting

Postby vaphil » 08 Apr 2009 12:37

Hopefully this is an easy one...

How do I pass options into libvlc_media_new for the MRL argument?

I have tried file://c:\something.mpg --no-audio and file://c:\somthing.mpg :no-audio

Nothing happens (i.e. the file doesn't even open) although no exceptions are raised.

If I pass a simple filename then use libvlc_media_add_option("--no-audio" or ":no-audio") the file plays but the option doesnt seem to take effect

(Note --no-audio is just an example MRL, I actually want to specify a few options)

Cheers, Phil.

Rémi Denis-Courmont
Developer
Developer
Posts: 15279
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: libvlc_media_new mrl formatting

Postby Rémi Denis-Courmont » 08 Apr 2009 14:12

Do not use -- or : in add_option...
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

vaphil
Blank Cone
Blank Cone
Posts: 10
Joined: 01 Apr 2009 18:26

Re: libvlc_media_new mrl formatting

Postby vaphil » 08 Apr 2009 14:33

many thanks, that works...


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 44 guests