Ticket #2283: 2283.patch
File 2283.patch, 1.3 KB (added by , 18 years ago) |
---|
-
libs/libmythtv/videoout_quartz.cpp
1171 1171 { 1172 1172 Started = 0; 1173 1173 1174 pauseFrame.buf = NULL;1174 init(&pauseFrame, FMT_YV12, NULL, 0, 0, 0, 0); 1175 1175 1176 1176 data = new QuartzData(); 1177 1177 data->views.setAutoDelete(true); … … 1426 1426 1427 1427 // Set up pause and scratch frames 1428 1428 if (pauseFrame.buf) 1429 { 1429 1430 delete [] pauseFrame.buf; 1431 init(&pauseFrame, FMT_YV12, NULL, 0, 0, 0, 0); 1432 } 1430 1433 1431 1434 VideoFrame *scratch = vbuffers.GetScratchFrame(); 1432 1435 1433 pauseFrame.height = scratch->height; 1434 pauseFrame.width = scratch->width; 1435 pauseFrame.bpp = scratch->bpp; 1436 pauseFrame.size = scratch->size; 1437 pauseFrame.buf = new unsigned char[pauseFrame.size]; 1436 init(&pauseFrame, FMT_YV12, new unsigned char[scratch->size], 1437 scratch->width, scratch->height, scratch->bpp, scratch->size); 1438 1438 1439 pauseFrame.frameNumber = scratch->frameNumber; 1439 1440 1440 1441 // Set up pixel storage and image description for source … … 1551 1552 data->pixelLock.unlock(); 1552 1553 1553 1554 if (pauseFrame.buf) 1555 { 1554 1556 delete [] pauseFrame.buf; 1557 init(&pauseFrame, FMT_YV12, NULL, 0, 0, 0, 0); 1558 } 1555 1559 1556 1560 vbuffers.DeleteBuffers(); 1557 1561 }