site  contact  subhomenews

Xorg Wizard: mplayer: bug fix

August 20, 2010 — BarryK
I am getting the media players working in Wary, ran into a serious bug with mplayer.

At first I was using the 'x11' video driver and all was well. Then I changed to the 'xv' driver, and video files played ok, but for a DVD video I just got a blue window (with sound).

This bug applies to gmplayer, smplayer and gnome-mplayer, as the bug is in the mplayer executable.

Running mplayer from a terminal, it was reporting:

X11 error: BadAlloc (insufficient resources for operation)

I found the solution here (yes, the problem is with the Intel video again):

http://www.mplayerhq.hu/DOCS/HTML/en/xv.html

I was using the Xorg 'i810' driver, and I don't know if I would have got this bug if I had been using the 'intel' driver.

Anyway, I have modified the Xorg Wizard to insert this line:

Option "LinearAlloc" "6144"

into the video driver section of /etc/X11/xorg.conf, for cases of the 'i810' or 'intel' drivers.

I have tested with both of these drivers, with the above option inserted, and a DVD video plays with 'xv' driver ok.

Tags: woof