SDL_DisplayYUVOverlay() segmentation fault

Hello,

Is SDL_DisplayYUVOverlay() expected to work with SDL_Rect.x != 0 and/or SDL_Rect.y != 0 when SDL_Overlay.hw_overlay = 0?

I have an application that I need to offset the frame/overlay, but I get a segmentation fault when renderng in a VMware based Xserver.

Thanks!

Shane

I wanted to add some information and rephrase my question.

The testoverlay.c and testoverlay2.c fail when the SDL_Rect.x/y != 0.
The following occurs:

Created 64x88X3 software YV12 overlay

X Error failed request: BadValue (integer parameter out of range for
operation)
Major opcode of failed request: 145 (MIT-SHM)
Minor opcode of failed request: 3 (X_ShmPutImage)
Value in failed request: 0x1b8
Serial number of failed request: 40
Current serial number in output stream: 41

I can understand why this happens when there is no hardware acceleration
(vmware_drv.o). The issue is that an application is dependent on a
hardware device when using SDL.

Is there any plan to handle this dependency or should I just assume that
SDL_Rect.x/y must equal zero when SDL_Overlay.hw_overlay = 0?

Thanks!

I wanted to add some information and rephrase my question.

The testoverlay.c and testoverlay2.c fail when the SDL_Rect.x/y != 0.
The following occurs:

Created 64x88X3 software YV12 overlay

X Error failed request: BadValue (integer parameter out of range for
operation)
Major opcode of failed request: 145 (MIT-SHM)
Minor opcode of failed request: 3 (X_ShmPutImage)
Value in failed request: 0x1b8
Serial number of failed request: 40
Current serial number in output stream: 41

I think this means that the overlay wasn’t clipped to the window
before being sent to the server. I’ll take a look, thanks!

-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment

I wanted to add some information and rephrase my question.

The testoverlay.c and testoverlay2.c fail when the SDL_Rect.x/y != 0.
The following occurs:

This has been added to the bug database:
https://bugzilla.libsdl.org/show_bug.cgi?id=189

Thanks!
-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment

I wanted to add some information and rephrase my question.

The testoverlay.c and testoverlay2.c fail when the SDL_Rect.x/y != 0.
The following occurs:

This has been added to the bug database:
https://bugzilla.libsdl.org/show_bug.cgi?id=189

This is fixed in CVS, thanks!

-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment