SDL-1.2.4 & cvs snapshot of Sept. 8: something not right

Im having a serious problem with SDL-1.2.4 and current cvs snapshots.
I have xawtv running all the time, it works great but I can’t watch any videos at all. Say I have xawtv on desktop 2, and I switch to desktop 4 and click on any .mpg or .avi in nautilus, I get sound but no video. Just an all black screen.
But, if then I go to console mode, and back to X desktop 4 without opening desktop 2 with xawtv, the video plays.
I go to xawtv, and back to desktop 4, again I get a black screen.
It happens to all video players I know: xmms, mplayer and aviplay.
It works fine with SDL-1.2.3.

Here’s my setup:

  • Gentoo 1.2 (with latest gentoo-sources kernel)
  • XFree86 4.2.0
  • Creative Riva TNT2 Ultra
  • Latest NVidia GLX/kernel module (1.0-3123)

If you need more info, please ask.
Thanks,

Kristof
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20020913/f984c42f/attachment.pgp

Im having a serious problem with SDL-1.2.4 and current cvs snapshots.
I have xawtv running all the time, it works great but I can’t watch any videos at all. Say I have xawtv on desktop 2, and I switch to desktop 4 and click on any .mpg or .avi in nautilus, I get sound but no video. Just an all black screen.
But, if then I go to console mode, and back to X desktop 4 without opening desktop 2 with xawtv, the video plays.
I go to xawtv, and back to desktop 4, again I get a black screen.
It happens to all video players I know: xmms, mplayer and aviplay.
It works fine with SDL-1.2.3.

Here’s my setup:

  • Gentoo 1.2 (with latest gentoo-sources kernel)
  • XFree86 4.2.0
  • Creative Riva TNT2 Ultra
  • Latest NVidia GLX/kernel module (1.0-3123)

This sounds like a bug in the NVidia drivers (or maybe SDL isn’t doing
something with the video port that it should be doing.) The difference
between SDL 1.2.3 and SDL 1.2.4 is that SDL 1.2.3 was using the texture
interface to the NVidia YUV hardware, while SDL 1.2.4 uses the correct
video port interface. You get get the old behavior by editing SDL_x11yuv.c
and uncommenting the line containing: #define USE_LAST_ADAPTOR
This has other problems, previously noted on the list, but will fix
your issue.

It sounds like xawtv is locking the video viewport, and only going to
console mode releases it. The reason the texture port works is because
it uses a different video port than xawtv does.

I’ll look into it…

Thanks!
-Sam Lantinga, Software Engineer, Blizzard Entertainment