|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
/*
|
|
|
|
|
* kxinewidget.cpp - a kde / qt api for xine-lib
|
|
|
|
|
* kxinewidget.cpp - a tde / tqt api for xine-lib
|
|
|
|
|
*
|
|
|
|
|
* Copyright (C) 2003-2005 Jürgen Kofler <kaffeine@gmx.net>
|
|
|
|
|
* Copyright (C) 2005-2006 Christophe Thommeret <hftom@free.fr>
|
|
|
|
@ -364,9 +364,9 @@ void KXineWidget::frameOutputCallback(void* p, int video_width, int video_height
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* XINE EVENT THREAD
|
|
|
|
|
* only the QT event thread should do GUI operations,
|
|
|
|
|
* only the TQt event thread should do GUI operations,
|
|
|
|
|
* we use TQApplication::postEvent() and a reimplementation of TQObject::timerEvent() to
|
|
|
|
|
* make sure all critical jobs are done within the QT main thread context
|
|
|
|
|
* make sure all critical jobs are done within the TQt main thread context
|
|
|
|
|
*
|
|
|
|
|
* for more information see http://doc.trolltech.com/3.1/threads.html
|
|
|
|
|
*/
|
|
|
|
@ -4048,7 +4048,7 @@ uchar* KXineWidget::yv12ToRgb (uint8_t *src_y, uint8_t *src_u, uint8_t *src_v, i
|
|
|
|
|
uv_width = width / 2;
|
|
|
|
|
uv_height = height / 2;
|
|
|
|
|
|
|
|
|
|
rgb = new uchar[(width * height * 4)]; //qt needs a 32bit align
|
|
|
|
|
rgb = new uchar[(width * height * 4)]; //tqt needs a 32bit align
|
|
|
|
|
if (!rgb)
|
|
|
|
|
{
|
|
|
|
|
// kdError(555) << "Not enough memory!" << endl;
|
|
|
|
|