Created
October 16, 2011 19:57
-
-
Save lfranchi/1291340 to your computer and use it in GitHub Desktop.
patch for phonon-vlc to avoid video popups
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/utils/libvlc.cpp b/src/utils/libvlc.cpp | |
index 44f07db..248760b 100644 | |
--- a/src/utils/libvlc.cpp | |
+++ b/src/utils/libvlc.cpp | |
@@ -98,6 +98,7 @@ bool LibVLC::init() | |
args << "--no-xlib"; | |
// Do not preload services discovery modules, we don't use them. | |
args << "--services-discovery=''"; | |
+#ifndef Q_OS_MAC | |
// Allow multiple starts (one gets to wonder whether that makes a difference. | |
args << "--no-one-instance"; | |
// This causes leaky abstraction. VLC by default will create a default vout/aout | |
@@ -106,7 +107,8 @@ bool LibVLC::init() | |
// equally if you have only an AudioOutput and play a video VLC will pop | |
// up a Video window. | |
args << "--aout=none"; | |
- args << "--vout=none"; | |
+#endif | |
+ args << "--vout=dummy"; | |
// Build const char* array | |
QVarLengthArray<const char*, 64> vlcArgs(args.size()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment