Ticket #1122: 1122.patch

File 1122.patch, 1.9 KB (added by danielk, 18 years ago)

debugging patch

  • libs/libmythtv/videoout_xv.cpp

     
    245245    // ungrab port...
    246246    if (xv_port >= 0)
    247247    {
     248        VERBOSE(VB_PLAYBACK, LOC + "Closing XVideo port " << xv_port);
    248249        X11S(XvUngrabPort(XJ_disp, xv_port, CurrentTime));
    249250        xv_port = -1;
    250251    }
     
    826827            delete xvmc_osd_available[i];
    827828        xvmc_osd_available.clear();
    828829        xvmc_osd_lock.unlock();
     830        VERBOSE(VB_PLAYBACK, LOC + "Closing XVideo port " << xv_port);
    829831        X11S(XvUngrabPort(XJ_disp, xv_port, CurrentTime));
    830832        xv_port = -1;
    831833    }
     
    903905    {
    904906        VERBOSE(VB_IMPORTANT, LOC_ERR +
    905907                "Couldn't find the proper XVideo image format.");
     908        VERBOSE(VB_PLAYBACK, LOC + "Closing XVideo port " << xv_port);
    906909        X11S(XvUngrabPort(XJ_disp, xv_port, CurrentTime));
    907910        xv_port = -1;
    908911    }
     
    916919    {
    917920        VERBOSE(VB_IMPORTANT, LOC_ERR + "Failed to create XVideo Buffers.");
    918921        DeleteBuffers(XVideo, false);
     922        VERBOSE(VB_PLAYBACK, LOC + "Closing XVideo port " << xv_port);
    919923        X11S(XvUngrabPort(XJ_disp, xv_port, CurrentTime));
    920924        xv_port = -1;
    921925        ok = false;
     
    10561060                                  width, height);
    10571061            ok = NULL != ctx;
    10581062            DeleteXvMCContext(disp, ctx);
     1063            VERBOSE(VB_PLAYBACK, LOC + "Closing XVideo port " << port);
    10591064            X11S(XvUngrabPort(disp, port, CurrentTime));
    10601065        }
    10611066    }
     
    11821187        DeleteBuffers(VideoOutputSubType(), true);
    11831188        if (xv_port >= 0)
    11841189        {
     1190            VERBOSE(VB_PLAYBACK, LOC + "Closing XVideo port " << xv_port);
    11851191            X11S(XvUngrabPort(XJ_disp, xv_port, CurrentTime));
    11861192            xv_port = -1;
    11871193        }