From 0dd48c3ccb1730ea194818eeaf55a082237dd288 Mon Sep 17 00:00:00 2001 From: Tats Date: Tue, 15 Mar 2016 19:19:20 -0400 Subject: [PATCH] Fixed blocking bug on OSX: program was freezing when move was loaded --- VideoImpl.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/VideoImpl.cpp b/VideoImpl.cpp index eab7688..39fe02c 100644 --- a/VideoImpl.cpp +++ b/VideoImpl.cpp @@ -929,7 +929,13 @@ void VideoImpl::_freeCurrentSample() { */ void VideoImpl::gstPadAddedCallback(GstElement *src, GstPad *newPad, VideoImpl* p) { +#ifdef VIDEO_IMPL_VERBOSE +#ifndef Q_OS_OSX + // NOTE: This line was causing a problem on Mac OSX: it caused the software to freeze when loading a new movie. qDebug() << "Received new pad '" << GST_PAD_NAME(newPad) << "' from '" << GST_ELEMENT_NAME (src) << "'." << endl; +#endif +#endif + GstPad *sinkPad = NULL; // Check the new pad's type.