Opened 18 years ago

Closed 18 years ago

#1074 closed patch (fixed)

mythfrontend/playbackbox.cpp:updateVideo() never sets conv_rgba_size causes delete/new every frame

Reported by: jwestfall <jwestfall@…> Owned by: Isaac Richards
Priority: minor Milestone: unknown
Component: mythtv Version: head
Severity: low Keywords:
Cc: Ticket locked: no

Description

       if (conv_rgba_size.width() != w || conv_rgba_size.height() != h)
        { 
            if (conv_rgba_buf)
                delete [] conv_rgba_buf;
            conv_rgba_buf = new unsigned char[w * h * 4];
        }

code is setup to only delete/new the rgb buffer if there has been a res change, but conv_rgba_size is never updated. This is forcing the if statement to be true on every frame.

Attachments (1)

playback.diff (474 bytes) - added by jwestfall <jwestfall@…> 18 years ago.
fix

Download all attachments as: .zip

Change History (2)

Changed 18 years ago by jwestfall <jwestfall@…>

Attachment: playback.diff added

fix

comment:1 Changed 18 years ago by Isaac Richards

Resolution: fixed
Status: newclosed

(In [8662]) Patch from Jim to fix #1074.

Note: See TracTickets for help on using tickets.