Index: libs/libmythtv/videoout_xv.cpp
===================================================================
--- libs/libmythtv/videoout_xv.cpp	(revision 8736)
+++ libs/libmythtv/videoout_xv.cpp	(working copy)
@@ -245,6 +245,7 @@
     // ungrab port...
     if (xv_port >= 0)
     {
+        VERBOSE(VB_PLAYBACK, LOC + "Closing XVideo port " << xv_port);
         X11S(XvUngrabPort(XJ_disp, xv_port, CurrentTime));
         xv_port = -1;
     }
@@ -826,6 +827,7 @@
             delete xvmc_osd_available[i];
         xvmc_osd_available.clear();
         xvmc_osd_lock.unlock();
+        VERBOSE(VB_PLAYBACK, LOC + "Closing XVideo port " << xv_port);
         X11S(XvUngrabPort(XJ_disp, xv_port, CurrentTime));
         xv_port = -1;
     }
@@ -903,6 +905,7 @@
     {
         VERBOSE(VB_IMPORTANT, LOC_ERR +
                 "Couldn't find the proper XVideo image format.");
+        VERBOSE(VB_PLAYBACK, LOC + "Closing XVideo port " << xv_port);
         X11S(XvUngrabPort(XJ_disp, xv_port, CurrentTime));
         xv_port = -1;
     }
@@ -916,6 +919,7 @@
     {
         VERBOSE(VB_IMPORTANT, LOC_ERR + "Failed to create XVideo Buffers.");
         DeleteBuffers(XVideo, false);
+        VERBOSE(VB_PLAYBACK, LOC + "Closing XVideo port " << xv_port);
         X11S(XvUngrabPort(XJ_disp, xv_port, CurrentTime));
         xv_port = -1;
         ok = false;
@@ -1056,6 +1060,7 @@
                                   width, height);
             ok = NULL != ctx;
             DeleteXvMCContext(disp, ctx);
+            VERBOSE(VB_PLAYBACK, LOC + "Closing XVideo port " << port);
             X11S(XvUngrabPort(disp, port, CurrentTime));
         }
     }
@@ -1182,6 +1187,7 @@
         DeleteBuffers(VideoOutputSubType(), true);
         if (xv_port >= 0)
         {
+            VERBOSE(VB_PLAYBACK, LOC + "Closing XVideo port " << xv_port);
             X11S(XvUngrabPort(XJ_disp, xv_port, CurrentTime));
             xv_port = -1;
         }
