From kde-commits Mon Aug 11 12:23:23 2008 From: Dirk Mueller Date: Mon, 11 Aug 2008 12:23:23 +0000 To: kde-commits Subject: KDE/kdebase/runtime/phonon/xine Message-Id: <1218457403.555431.29117.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=121845741408481 SVN commit 845283 by mueller: don't use c++ variable length arrays because they're not standardized M +2 -1 xinestream.cpp --- trunk/KDE/kdebase/runtime/phonon/xine/xinestream.cpp #845282:845283 @@ -25,6 +25,7 @@ #include #include #include +#include #include #include @@ -1034,7 +1035,7 @@ kDebug(610) << "taking snapshot of" << w << h; if (w > 0 && h > 0) { int width, height, ratio_code, format; - uint8_t img[w * h * 4]; + QVarLengthArray img(w * h * 4); int success = xine_get_current_frame (m_stream, &width, &height, &ratio_code, &format, &img[0]); if (!success) {