updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / phonon-mplayer-git / fix_find_config.patch
blob145538679e369fc2d4e7f58f82f262d45b5d0af4
1 diff -aur phonon-mplayer/mplayer/libmplayer/MPlayerConfig.cpp phonon-mplayer2/mplayer/libmplayer/MPlayerConfig.cpp
2 --- phonon-mplayer/mplayer/libmplayer/MPlayerConfig.cpp 2011-11-24 18:06:31.105227140 -0800
3 +++ phonon-mplayer2/mplayer/libmplayer/MPlayerConfig.cpp 2011-11-24 18:17:02.000000000 -0800
4 @@ -73,7 +73,7 @@
5 //Under Windows, config file should be inside a subdirectory named mplayer/mplayer
6 QString defaultMPlayerConfigPath = "mplayer/mplayer/config";
7 #else
8 - QString defaultMPlayerConfigPath = "~/.mplayer/config";
9 + QString defaultMPlayerConfigPath = QDir::homePath()+"/.mplayer/config";
10 #endif
12 return _settings.value("mplayer_config_path", defaultMPlayerConfigPath).toString();
13 diff -aur phonon-mplayer/mplayer/libmplayer/MPlayerConfig.h phonon-mplayer2/mplayer/libmplayer/MPlayerConfig.h
14 --- phonon-mplayer/mplayer/libmplayer/MPlayerConfig.h 2011-11-24 18:06:31.105227140 -0800
15 +++ phonon-mplayer2/mplayer/libmplayer/MPlayerConfig.h 2011-11-24 18:18:05.000000000 -0800
16 @@ -21,6 +21,7 @@
18 #include <QtCore/QString>
19 #include <QtCore/QSettings>
20 +#include <QtCore/QDir>
22 namespace Phonon