[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] [BUG] pygame 1.8.1 beta 2 movie module plays MPEG file's sound, but not video



I just found the DirectX version check is unnecessary. DirectX 9.0 is unavailable for Windows ME and earlier.

Lenard


Lenard Lindstrom wrote:

Thank you Jason. Now to answer Brian's question as to how the current Pygame version differs from 1236. Code was added to __init__.py (1285-1286) to set the video driver to directx for Windows versions predating XP. My Windows predates XP and has only DirectX 8.1 installed. XP has DirectX 9.0. Apparently pygame incorrectly sets the video driver to directx for XP and DirectX 9.0 breaks the DirectX 5 api used by SDL. Surprise, surprise.

So what to do. Obviously __init__.py needs fixing. But what about checking the DirectX version? I don't see any way to do it with SDL. DirectX has a COM interface so ctypes is useless without comtypes.

Lenard


Jason M. Marshall wrote:
With SDL_VIDEODRIVER set to windib, the movie's video
is displayed, but with SDL_VIDEODRIVER set to directx,
the movie's video is not displayed.

(I am using Windows XP SP2, Python 2.4.4, and pygame
1.8.1rc2-svn1507.)