summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2014-06-26 20:40:05 -0700
committerYoann Lopes <yoann.lopes@digia.com>2014-07-07 13:46:35 +0200
commit4d35f66acf90e64e6c174bee9d809713d07fcd7e (patch)
tree4b4ca708ee946db71c35eba414fa5e3b6b3cdadf /src
parent6048450ed711e0e45a5e82052fa815ba73f8f23d (diff)
downloadqtmultimedia-4d35f66acf90e64e6c174bee9d809713d07fcd7e.tar.gz
Fix change-of-sign warning
qgstappsrc.cpp(54): warning #68: integer conversion resulted in a change of sign Change-Id: I0bf8c93cb5e27114a8857dc650ac506152607491 Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/gsttools/qgstappsrc.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gsttools/qgstappsrc.cpp b/src/gsttools/qgstappsrc.cpp
index 2c9f64c34..7f34dac63 100644
--- a/src/gsttools/qgstappsrc.cpp
+++ b/src/gsttools/qgstappsrc.cpp
@@ -51,7 +51,7 @@ QGstAppSrc::QGstAppSrc(QObject *parent)
,m_sequential(false)
,m_maxBytes(0)
,m_setup(false)
- ,m_dataRequestSize(-1)
+ ,m_dataRequestSize(~0)
,m_dataRequested(false)
,m_enoughData(false)
,m_forceData(false)
@@ -102,7 +102,7 @@ void QGstAppSrc::setStream(QIODevice *stream)
if (m_appSrc)
gst_object_unref(G_OBJECT(m_appSrc));
- m_dataRequestSize = -1;
+ m_dataRequestSize = ~0;
m_dataRequested = false;
m_enoughData = false;
m_forceData = false;
@@ -149,7 +149,7 @@ void QGstAppSrc::pushDataToAppSrc()
if (m_dataRequested && !m_enoughData) {
qint64 size;
- if (m_dataRequestSize == (unsigned int)-1)
+ if (m_dataRequestSize == ~0)
size = qMin(m_stream->bytesAvailable(), queueSize());
else
size = qMin(m_stream->bytesAvailable(), (qint64)m_dataRequestSize);