[MPlayer-cvslog] r27998 - trunk/libvo/vo_wii.c
Reimar Döffinger
Reimar.Doeffinger at stud.uni-karlsruhe.de
Sun Nov 23 16:05:54 CET 2008
On Sun, Nov 23, 2008 at 03:32:39PM +0100, diego wrote:
> Modified: trunk/libvo/vo_wii.c
> ==============================================================================
> --- trunk/libvo/vo_wii.c (original)
> +++ trunk/libvo/vo_wii.c Sun Nov 23 15:32:39 2008
> @@ -210,10 +210,8 @@ static int config(uint32_t width, uint32
> fb_line_len = fb_finfo.line_length;
> fb_size = fb_finfo.smem_len;
> frame_buffer = NULL;
> -
> - frame_buffer = (uint8_t *) mmap(0, fb_size, PROT_READ | PROT_WRITE,
> - MAP_SHARED, fb_dev_fd, 0);
> - if (frame_buffer == (uint8_t *) -1) {
> + if ((frame_buffer = (uint8_t *) mmap(0, fb_size, PROT_READ | PROT_WRITE,
> + MAP_SHARED, fb_dev_fd, 0)) == (uint8_t *) -1) {
I think "merging" the other way would have been preferable, that would
also have made it more obvious what a nonsense that "frame_buffer = NULL;" directly before is.
Going by what I have seen so far it should be no problem to find a good
dozen of bugs in both vos... I really hate all that "umaintainted and
almost unused and untested" code.
Greetings,
Reimar Döffinger
More information about the MPlayer-cvslog
mailing list