From 093a10de7b868cf4c9d5f70bec407cc5d3416467 Mon Sep 17 00:00:00 2001 From: Tats Date: Thu, 23 Oct 2014 16:37:08 +0000 Subject: [PATCH] Removed unused variable _currentMovie. --- MediaImpl.cpp | 6 ++---- MediaImpl.h | 4 ---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/MediaImpl.cpp b/MediaImpl.cpp index 872ee24..84bb901 100644 --- a/MediaImpl.cpp +++ b/MediaImpl.cpp @@ -106,7 +106,7 @@ void MediaImpl::build() qDebug() << "Building video impl"; if (!loadMovie(_uri)) { - qDebug() << "Cannot load movie " << _currentMovie << "."; + qDebug() << "Cannot load movie " << _uri << "."; } } @@ -194,7 +194,6 @@ GstFlowReturn MediaImpl::gstNewSampleCallback(GstElement*, MediaImpl *p) } MediaImpl::MediaImpl(const QString uri, bool live) : -_currentMovie(""), _bus(NULL), _pipeline(NULL), _uridecodebin0(NULL), @@ -305,7 +304,6 @@ void MediaImpl::resetMovie() { // Just reload movie. qDebug() << "Reloading the movie" << _seekEnabled; - _currentMovie = ""; loadMovie(_uri); } } @@ -678,7 +676,7 @@ void MediaImpl::_checkMessages() gst_message_parse_state_changed(msg, &oldState, &newState, &pendingState); g_print("Pipeline state for movie %s changed from %s to %s:\n", - _currentMovie.toUtf8().constData(), + _uri.toUtf8().constData(), gst_element_state_get_name(oldState), gst_element_state_get_name(newState)); } diff --git a/MediaImpl.h b/MediaImpl.h index 09589a7..49a666c 100644 --- a/MediaImpl.h +++ b/MediaImpl.h @@ -194,10 +194,6 @@ public: private: //locals - /** - * Path of the movie being played. - */ - QString _currentMovie; // gstreamer elements GstBus *_bus;