[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/runtime/phonon/xine
From: Dirk Mueller <mueller () kde ! org>
Date: 2008-08-11 12:23:23
Message-ID: 1218457403.555431.29117.nullmailer () svn ! kde ! org
[Download RAW message or body]
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 <QEvent>
#include <QCoreApplication>
#include <QTimer>
+#include <QVarLengthArray>
#include <klocale.h>
#include <kurl.h>
@@ -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<uint8_t> img(w * h * 4);
int success = xine_get_current_frame (m_stream, &width, &height, &ratio_code,
&format, &img[0]);
if (!success) {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic