| Summary: | YUV Overlay and OpenGL | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Stefan Bradl <stefan_bradl> |
| Component: | video | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | 1.2.11 | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
|
Description
Stefan Bradl
2007-07-13 13:06:46 UTC
I believe this is fixed in SDL 1.2.12: Couldn't create overlay: YUV overlays are not supported in OpenGL mode Tried out SDL 1.2.12 but the bug still exists Can you attach a simple test case that shows the problem? ok I'll try to make a little test case because the project where i found this problem is a little bit bigger... I'm taking a look at it now... So it is actually failing and returning a NULL overlay surface. Whatever library you're using isn't checking the return value. I fixed it so it isn't crashing in SDL anymore, but the application still crashes because it assumes that it got a valid overlay. but why fails SDL_CreateYUVOverlay() only when OpenGL is initialized? ah ok I understand...yuv overlays are generally not supported in in opengl... Is there a workaround for this problem because I need to play videos in an OpenGL window. Take a look at the glmovie test program in the SMPEG source http://www.icculus.org/smpeg/ |