From 7177d62f90b32e81c9e24653022fc2cd8b274d69 Mon Sep 17 00:00:00 2001 From: Alexandre Quessy Date: Thu, 8 May 2014 16:06:31 -0400 Subject: [PATCH] remove useless endl in prints --- Mapper.cpp | 2 +- MapperGLCanvas.cpp | 2 +- MediaImpl.cpp | 20 ++++++++++---------- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Mapper.cpp b/Mapper.cpp index 53a537c..e8bd170 100644 --- a/Mapper.cpp +++ b/Mapper.cpp @@ -50,7 +50,7 @@ Mapper::Mapper(Mapping::ptr mapping) _propertyBrowser->addProperty(_topItem); - qDebug() << "Creating mapper" << endl; + //qDebug() << "Creating mapper" << endl; } Mapper::~Mapper() diff --git a/MapperGLCanvas.cpp b/MapperGLCanvas.cpp index f248dfd..2b366e7 100644 --- a/MapperGLCanvas.cpp +++ b/MapperGLCanvas.cpp @@ -38,7 +38,7 @@ void MapperGLCanvas::initializeGL() void MapperGLCanvas::resizeGL(int width, int height) { - qDebug() << "Resize to " << width << "x" << height << endl; + //qDebug() << "Resize to " << width << "x" << height << endl; glViewport(0, 0, width, height); glMatrixMode (GL_PROJECTION); glLoadIdentity (); diff --git a/MediaImpl.cpp b/MediaImpl.cpp index e5e83c0..9825557 100644 --- a/MediaImpl.cpp +++ b/MediaImpl.cpp @@ -36,7 +36,7 @@ bool MediaImpl::hasVideoSupport() qDebug() << "Using GStreamer version " << GST_VERSION_MAJOR << "." << GST_VERSION_MINOR << "." << - GST_VERSION_MICRO << endl; + GST_VERSION_MICRO; did_print_gst_version = true; } // TODO: actually check if we have it @@ -60,10 +60,10 @@ const uchar* MediaImpl::getBits() const void MediaImpl::build() { - qDebug() << "Building video impl" << endl; + qDebug() << "Building video impl"; if (!loadMovie(_uri)) { - qDebug() << "Cannot load movie " << _currentMovie << "." << endl; + qDebug() << "Cannot load movie " << _currentMovie << "."; } } @@ -282,7 +282,7 @@ void MediaImpl::resetMovie() // have to reload but it seems weird so we should check. if (!_eos() && _seekEnabled) { - qDebug() << "Seeking at position 0." << endl; + qDebug() << "Seeking at position 0."; gst_element_seek_simple (_pipeline, GST_FORMAT_TIME, (GstSeekFlags) (GST_SEEK_FLAG_FLUSH | GST_SEEK_FLAG_KEY_UNIT), 0); _setReady(true); @@ -290,7 +290,7 @@ void MediaImpl::resetMovie() else { // Just reload movie. - qDebug() << "Reloading the movie" << _seekEnabled << endl; + qDebug() << "Reloading the movie" << _seekEnabled; _currentMovie = ""; loadMovie(_uri); } @@ -374,7 +374,7 @@ bool MediaImpl::loadMovie(QString filename) GError* error = NULL; uri = gst_filename_to_uri(uri, &error); if (error) { - qDebug() << "Filename to URI error: " << error->message << endl; + qDebug() << "Filename to URI error: " << error->message; g_error_free(error); gst_object_unref (uri); freeResources(); @@ -383,7 +383,7 @@ bool MediaImpl::loadMovie(QString filename) } // Set URI to be played. - qDebug() << "URI for uridecodebin: " << uri << endl; + qDebug() << "URI for uridecodebin: " << uri; g_object_set (_source, "uri", uri, NULL); // Connect to the pad-added signal @@ -421,7 +421,7 @@ bool MediaImpl::loadMovie(QString filename) if (!_setPlayState(true)) return false; - qDebug() << "Pipeline started." << endl; + qDebug() << "Pipeline started."; //_movieReady = true; return true; @@ -612,7 +612,7 @@ bool MediaImpl::_setPlayState(bool play) GstStateChangeReturn ret = gst_element_set_state (_pipeline, (play ? GST_STATE_PLAYING : GST_STATE_PAUSED)); if (ret == GST_STATE_CHANGE_FAILURE) { - qDebug() << "Unable to set the pipeline to the playing state." << endl; + qDebug() << "Unable to set the pipeline to the playing state."; unloadMovie(); return false; } @@ -632,7 +632,7 @@ void MediaImpl::_setReady(bool ready) } void MediaImpl::_setFinished(bool finished) { -// qDebug() << "Clip " << (finished ? "finished" : "not finished") << endl; +// qDebug() << "Clip " << (finished ? "finished" : "not finished"); } void MediaImpl::gstPadAddedCallback(GstElement *src, GstPad *newPad, MediaImpl::GstPadHandlerData* data) {