SDL & Qt

Hi all!

I have the following problem:

I am developing a multivideo player, a player that shows more than one videos at the same time. For rendering the videos I am using SDL. For controlling the player (play, pause, stop, etc…) I am using Qt.
I am using SDL in a qthread (Qt by Trolltech). Under Windows everthing works fine. But under Linux I get problems. If a new Video is loaded, the SDL window has to resize. I am using SDL_SetVideoMode for reinitializing the SDL window. But there I get an error: “Unexpected async reply”.

What does this error mean? Can anybody help? Please…

Regards,
Ronnie

Ronald Sowa wrote:

reinitializing the SDL window. But there I get an error: “Unexpected
async reply”.
What does this error mean? Can anybody help? Please…

You are calling SDL_SetVideoMode() in a thread different from the one
you did it the first time. You should always use SDL calls in the same
thread.

Bye,
Gabry