[MPlayer-dev-eng] [PATCH] libdha small bugfix

Aurélien Jacobs aurel at gnuage.org
Thu Jan 2 16:37:09 CET 2003


Hi,

I've got into trouble trying to use vidix with mplayer built onto
a boot CD using the uClibc insted of the glibc. I've tracked the
bug into libdha/pci.c.

There is a global variable pcicards which is staticly initialized
to 0, and which is incremented for each pci card found. But it
is never reseted to 0 between each pci_scan call. So pci_scan
only work well during it's first call !

Here are two patches which does the same thing. There is
an ovious version, and a version that I find cleaner and
which totaly remove this global variable.
Just chose the one you prefer !

Aurélien Jacobs
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: libdha-pci-obvious.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20030102/4e2d1d55/attachment.asc>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: libdha-pci-cleaner.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20030102/4e2d1d55/attachment.txt>


More information about the MPlayer-dev-eng mailing list