I'm developing a media player that streams mp3 files. I'm using the python gstreamer module to play the streams.
my player is the playbin2 element
When I want to query the position (with query_position(gst.FORMAT_TIME,None)), it always returns a gst.QueryError: Query failed.
The song is definetly playing. (state is not NULL) 
Does anyone have any experience with this?
PS: I also tried replacing gst.FORMAT_TIME with gst.Format(gst.FORMAT_TIME), but gives me the same error.
I found it on my own. Problem was with threading. Apparently, you'll need to thread your gst object and just wait until the query succeeds.
element playbin2 query_position always returns query failed