shape_mplayer_output.patch 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. diff -Nur smplayer-0.6.6-old/src/core.cpp smplayer-0.6.6/src/core.cpp
  2. --- smplayer-0.6.6-old/src/core.cpp 2008-12-30 01:43:28.000000000 +0200
  3. +++ smplayer-0.6.6/src/core.cpp 2009-01-02 05:41:54.000000000 +0200
  4. @@ -1192,6 +1192,8 @@
  5. proc->addArgument( mplayer_bin );
  6. proc->addArgument("-noquiet");
  7. + proc->addArgument("-nomsgcolor");
  8. + proc->addArgument("-nomsgmodule");
  9. if (pref->fullscreen && pref->use_mplayer_window) {
  10. proc->addArgument("-fs");
  11. diff -Nur smplayer-0.6.6-old/src/infoprovider.cpp smplayer-0.6.6/src/infoprovider.cpp
  12. --- smplayer-0.6.6-old/src/infoprovider.cpp 2008-10-13 11:14:07.000000000 +0300
  13. +++ smplayer-0.6.6/src/infoprovider.cpp 2009-01-02 05:41:54.000000000 +0200
  14. @@ -40,6 +40,8 @@
  15. proc.addArgument("null");
  16. proc.addArgument("-ao");
  17. proc.addArgument("null");
  18. + proc.addArgument("-nomsgcolor");
  19. + proc.addArgument("-nomsgmodule");
  20. proc.addArgument(filename);
  21. proc.start();
  22. diff -Nur smplayer-0.6.6-old/src/inforeader.cpp smplayer-0.6.6/src/inforeader.cpp
  23. --- smplayer-0.6.6-old/src/inforeader.cpp 2008-07-05 02:53:21.000000000 +0300
  24. +++ smplayer-0.6.6/src/inforeader.cpp 2009-01-02 05:41:54.000000000 +0200
  25. @@ -77,7 +77,7 @@
  26. demuxer_list.clear();
  27. mplayer_svn = -1;
  28. - run("-identify -vo help -ao help -demuxer help -vc help -ac help");
  29. + run("-identify -vo help -ao help -demuxer help -vc help -ac help -nomsgcolor -nomsgmodule");
  30. //list();
  31. }
  32. diff -Nur smplayer-0.6.6-old/src/videopreview/videopreview.cpp smplayer-0.6.6/src/videopreview/videopreview.cpp
  33. --- smplayer-0.6.6-old/src/videopreview/videopreview.cpp 2008-12-22 02:50:55.000000000 +0200
  34. +++ smplayer-0.6.6/src/videopreview/videopreview.cpp 2009-01-02 05:41:54.000000000 +0200
  35. @@ -262,6 +262,8 @@
  36. bool VideoPreview::runMplayer(int seek, double aspect_ratio) {
  37. QStringList args;
  38. args << "-nosound";
  39. + args << "-nomsgcolor";
  40. + args << "-nomsgmodule";
  41. if (prop.extract_format == PNG) {
  42. args << "-vo"
  43. @@ -442,7 +444,7 @@
  44. p.setProcessChannelMode( QProcess::MergedChannels );
  45. QStringList args;
  46. - args << "-vo" << "null" << "-ao" << "null" << "-frames" << "1" << "-identify" << "-nocache" << "-noquiet" << filename;
  47. + args << "-vo" << "null" << "-ao" << "null" << "-frames" << "1" << "-identify" << "-nocache" << "-noquiet" << "-nomsgcolor" << "-nomsgmodule" << filename;
  48. if (!prop.dvd_device.isEmpty()) {
  49. args << "-dvd-device" << prop.dvd_device;