Fixed blocking bug on OSX: program was freezing when move was loaded

This commit is contained in:
Tats
2016-03-15 19:19:20 -04:00
parent 20839efc05
commit 0dd48c3ccb
+6
View File
@@ -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.