~ubuntu-branches/ubuntu/lucid/mythtv/lucid

« back to all changes in this revision

Viewing changes to libs/libmythtv/videoout_vdpau.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Mario Limonciello
  • Date: 2009-09-08 23:08:37 UTC
  • mfrom: (1.1.32 upstream)
  • Revision ID: james.westby@ubuntu.com-20090908230837-zrm2j6wutp76hwso
Tags: 0.22.0~trunk21742-0ubuntu1
* New upstream checkout (21742)
  - Fixes FTBFS on PPC. See changeset 21571 for more details.

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
    (void) embedid;
50
50
    QMutexLocker locker(&m_lock);
51
51
    windows[0].SetNeedRepaint(true);
52
 
    windows[0].SetAllowPreviewEPG(false);
53
52
    bool ok = VideoOutput::Init(width, height, aspect,
54
53
                                winid, winx, winy, winw, winh,
55
54
                                embedid);
329
328
        return;
330
329
    }
331
330
 
332
 
    if (windows[0].IsRepaintNeeded() && !windows[0].IsEmbedding())
 
331
    if (windows[0].IsRepaintNeeded())
333
332
        DrawUnusedRects(false);
334
333
 
335
334
    m_ctx->DisplayNextFrame();
402
401
{
403
402
    QMutexLocker locker(&m_lock);
404
403
    if (!windows[0].IsEmbedding())
 
404
    {
405
405
        VideoOutput::EmbedInWidget(x, y, w, h);
406
 
    MoveResize();
 
406
        MoveResize();
 
407
        windows[0].SetDisplayVisibleRect(windows[0].GetTmpDisplayVisibleRect());
 
408
    }
407
409
}
408
410
 
409
411
void VideoOutputVDPAU::StopEmbedding(void)
423
425
 
424
426
void VideoOutputVDPAU::DrawUnusedRects(bool sync)
425
427
{
426
 
    if (windows[0].IsRepaintNeeded() &&
427
 
        windows[0].GetVisibility() == kVisibility_Normal)
 
428
    if (windows[0].IsRepaintNeeded())
428
429
    {
429
430
        const QRect display_visible_rect = windows[0].GetDisplayVisibleRect();
430
431
        m_disp->SetForeground(m_colorkey);