Fix some compiler warnings.
Mostly about deprecated ASCII casts. Change-Id: I70428913799c15f20a1a5f80be57848e1072e058 Reviewed-on: http://codereview.qt.nokia.com/4158 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
This commit is contained in:
committed by
Qt by Nokia
parent
123ffbd783
commit
7507c80524
@@ -182,6 +182,7 @@ bool QGstAppSrc::doSeek(qint64 value)
|
||||
|
||||
gboolean QGstAppSrc::on_seek_data(GstAppSrc *element, guint64 arg0, gpointer userdata)
|
||||
{
|
||||
Q_UNUSED(element);
|
||||
QGstAppSrc *self = reinterpret_cast<QGstAppSrc*>(userdata);
|
||||
if (self && self->isStreamValid()) {
|
||||
if (!self->stream()->isSequential())
|
||||
@@ -195,6 +196,7 @@ gboolean QGstAppSrc::on_seek_data(GstAppSrc *element, guint64 arg0, gpointer use
|
||||
|
||||
void QGstAppSrc::on_enough_data(GstAppSrc *element, gpointer userdata)
|
||||
{
|
||||
Q_UNUSED(element);
|
||||
QGstAppSrc *self = reinterpret_cast<QGstAppSrc*>(userdata);
|
||||
if (self)
|
||||
self->enoughData() = true;
|
||||
@@ -202,6 +204,7 @@ void QGstAppSrc::on_enough_data(GstAppSrc *element, gpointer userdata)
|
||||
|
||||
void QGstAppSrc::on_need_data(GstAppSrc *element, guint arg0, gpointer userdata)
|
||||
{
|
||||
Q_UNUSED(element);
|
||||
QGstAppSrc *self = reinterpret_cast<QGstAppSrc*>(userdata);
|
||||
if (self) {
|
||||
self->dataRequested() = true;
|
||||
|
||||
@@ -103,8 +103,8 @@ QGstreamerPlayerSession::QGstreamerPlayerSession(QObject *parent)
|
||||
m_lastPosition(0),
|
||||
m_duration(-1),
|
||||
m_durationQueries(0),
|
||||
m_everPlayed(false) ,
|
||||
m_sourceType(UnknownSrc),
|
||||
m_everPlayed(false),
|
||||
m_isLiveSource(false)
|
||||
{
|
||||
#ifdef USE_PLAYBIN2
|
||||
@@ -195,6 +195,9 @@ GstElement *QGstreamerPlayerSession::playbin() const
|
||||
#if defined(HAVE_GST_APPSRC)
|
||||
void QGstreamerPlayerSession::configureAppSrcElement(GObject* object, GObject *orig, GParamSpec *pspec, QGstreamerPlayerSession* self)
|
||||
{
|
||||
Q_UNUSED(object);
|
||||
Q_UNUSED(pspec);
|
||||
|
||||
if (self->appsrc()->isReady())
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user