wx.MediaControl: volume issue in ubuntu

Hi folks,

I have a strange little problem that I “think” could be a bug, but I am not sure. I want to use wx.MediaCtrl for an audioplayer that should run both in Windows and in Ubuntu. The code that I have attached represents a minimal example. It works fine on Windows XP, but under Ubuntu 10.04 LTS (Lucid Lynx) the following strange behaviour is observed:

I load in my audiofile and I can play and stop it fine and also regulate the volume no problem. When I however, then stop the file and load a new one, I can still play and stop the file, but I “cannot” adjust the volume anymore. On using GetVolume() it shows however, that it “is” in fact still regulating “something”. (I left the print statements in for you to see).

As I said, this code works fine in Windows XP (32-bit). Is this a bug or am I doing something very horribly wrong?

My current system is:
Ubuntu 10.04 Lucid Lynx (64-bit)
Python 2.6.5
wxPytho 2.8.10.1 (gtk2-unicode)

Is there a way around this? I know, mediactrl is using Gstreamer on Ubuntu, so is there a way for me to change it manually for it to work?

thanks a lot for your help, peeps

Johannes

P.S. First post, so please be lenient, if I broke some sort of etiquette here on the mailing list.

minimalexample.py (3.94 KB)