Skip to content

Instantly share code, notes, and snippets.

@lfranchi
Created October 16, 2011 19:57
Show Gist options
  • Save lfranchi/1291340 to your computer and use it in GitHub Desktop.
Save lfranchi/1291340 to your computer and use it in GitHub Desktop.
patch for phonon-vlc to avoid video popups
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