Page 1 of 1

Independent configuration of instances in the same process

Posted: 06 Feb 2010 14:27
by Cyranjo
Hi,

I use the following sourcecode to create 2 VLC players (using libvlc) in Python.

Code: Select all

inst1 = libvlc.Instance("--ignore-config", "--sout=#transcode{acodec=s16l,channels=2,samplerate=44100}:std{access=file,mux=raw,dst=/tmp/file1}") inst2 = libvlc.Instance("--ignore-config", "--sout=#transcode{acodec=s16l,channels=2,samplerate=44100}:std{access=file,mux=raw,dst=/tmp/file2}") mp1 = inst1.media_player_new() mp2 = inst2.media_player_new() [...]
However it seems that in the end both players mp1 and mp2 have the configuration parameters that were passed to inst2 instead of mp1 having these of inst1.
Is this behaviour intended and is there any workaround for this other than setting the configuration for each Media object before invoking set_media on the player?

VLC version is 1.0.4 on Debian

Re: Independent configuration of instances in the same process

Posted: 06 Feb 2010 15:12
by RĂ©mi Denis-Courmont
This is a known bug/limitation in VLC versions earlier than 1.1.0.