Index: mythtv/libs/libmythtv/NuppelVideoPlayer.cpp =================================================================== --- mythtv/libs/libmythtv/NuppelVideoPlayer.cpp (revision 15758) +++ mythtv/libs/libmythtv/NuppelVideoPlayer.cpp (working copy) @@ -6966,12 +6975,19 @@ uint btnY = ringBuffer->DVD()->ButtonPosY(); subtitleOSD = osd->GetSet("subtitles"); + if ((h > bitmapHeight) || (w > bitmapWidth)) + { + subtitleLock.unlock(); + ringBuffer->DVD()->ReleaseMenuButton(); + return; + } + if ((w + x1) > bitmapWidth) w = w - ((w + x1) - bitmapWidth); - + if ((h + y1) > bitmapHeight) h = h - ((h + y1) - bitmapHeight); - + QImage hl_button(w, h, 32); hl_button.setAlphaBuffer(true); for (uint y = 0; y < h; y++)