Ticket #1122: 1122.patch
File 1122.patch, 1.9 KB (added by , 18 years ago) |
---|
-
libs/libmythtv/videoout_xv.cpp
245 245 // ungrab port... 246 246 if (xv_port >= 0) 247 247 { 248 VERBOSE(VB_PLAYBACK, LOC + "Closing XVideo port " << xv_port); 248 249 X11S(XvUngrabPort(XJ_disp, xv_port, CurrentTime)); 249 250 xv_port = -1; 250 251 } … … 826 827 delete xvmc_osd_available[i]; 827 828 xvmc_osd_available.clear(); 828 829 xvmc_osd_lock.unlock(); 830 VERBOSE(VB_PLAYBACK, LOC + "Closing XVideo port " << xv_port); 829 831 X11S(XvUngrabPort(XJ_disp, xv_port, CurrentTime)); 830 832 xv_port = -1; 831 833 } … … 903 905 { 904 906 VERBOSE(VB_IMPORTANT, LOC_ERR + 905 907 "Couldn't find the proper XVideo image format."); 908 VERBOSE(VB_PLAYBACK, LOC + "Closing XVideo port " << xv_port); 906 909 X11S(XvUngrabPort(XJ_disp, xv_port, CurrentTime)); 907 910 xv_port = -1; 908 911 } … … 916 919 { 917 920 VERBOSE(VB_IMPORTANT, LOC_ERR + "Failed to create XVideo Buffers."); 918 921 DeleteBuffers(XVideo, false); 922 VERBOSE(VB_PLAYBACK, LOC + "Closing XVideo port " << xv_port); 919 923 X11S(XvUngrabPort(XJ_disp, xv_port, CurrentTime)); 920 924 xv_port = -1; 921 925 ok = false; … … 1056 1060 width, height); 1057 1061 ok = NULL != ctx; 1058 1062 DeleteXvMCContext(disp, ctx); 1063 VERBOSE(VB_PLAYBACK, LOC + "Closing XVideo port " << port); 1059 1064 X11S(XvUngrabPort(disp, port, CurrentTime)); 1060 1065 } 1061 1066 } … … 1182 1187 DeleteBuffers(VideoOutputSubType(), true); 1183 1188 if (xv_port >= 0) 1184 1189 { 1190 VERBOSE(VB_PLAYBACK, LOC + "Closing XVideo port " << xv_port); 1185 1191 X11S(XvUngrabPort(XJ_disp, xv_port, CurrentTime)); 1186 1192 xv_port = -1; 1187 1193 }