[Lunar-commits] <moonbase> flash-plugin-10: enable vdpau in mms.cfg

Paul Bredbury brebs at lunar-linux.org
Wed Feb 9 05:31:48 CET 2011


commit f9c9a0a2b8d1ffa94dc38b51b64a529400c0e4ca
Author: Paul Bredbury <brebs at lunar-linux.org>
Date:   Wed Feb 9 11:31:48 2011 +0700

    flash-plugin-10: enable vdpau in mms.cfg
    
    Otherwise, vdpau isn't used.
---
 web/flash-plugin-10/BUILD |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/web/flash-plugin-10/BUILD b/web/flash-plugin-10/BUILD
index 9c44873..9d3ba8f 100644
--- a/web/flash-plugin-10/BUILD
+++ b/web/flash-plugin-10/BUILD
@@ -2,6 +2,14 @@
 
   prepare_install              &&
   mkdir -p /opt/lunar/plugins  &&
-  install -m755 libflashplayer.so /opt/lunar/plugins/
+  install -m755 libflashplayer.so /opt/lunar/plugins/ &&
+
+  if in_depends $MODULE libvdpau ; then
+    if ! grep -q EnableLinuxHWVideoDecode /etc/adobe/mms.cfg 2>/dev/null ; then
+      # From http://www.nvnews.net/vbulletin/showthread.php?t=148409&page=5
+      mkdir -p /etc/adobe/ &&
+      echo "EnableLinuxHWVideoDecode=1" >> /etc/adobe/mms.cfg
+    fi
+  fi
 
 ) > $C_FIFO 2>&1


More information about the Lunar-commits mailing list