[VDPAU] Flash Player Workaround for Opera

The workaround in libvdpau for blue-ish colors in the VDPAU accelerated Flash Player currently doesn’t work in Opera. Opera uses its own plugin wrapper for executing the Flash plugin without specifing “libflashplayer” on the command line anywhere. Therefore the string matching used by libvdpau doesn’t work.

The following patch works around this:

--- libvdpau-0.6/src/vdpau_wrapper.c.orig       2013-01-25 01:55:06.000000000 +0100
+++ libvdpau-0.6/src/vdpau_wrapper.c    2013-06-15 23:06:24.509276110 +0200
@@ -326,6 +326,9 @@
     if (strstr(buffer, "libflashplayer") != NULL) {
         _running_under_flash = 1;
     }
+    if (strstr(buffer, "operapluginwrapper") != NULL) {
+        _running_under_flash = 1;
+    }
 }
 
 void init_config(void)

The workaround assumes, that every plugin executed by Opera using VDPAU is the broken Flash plugin. Currently that matches 99 % of the use cases correctly. The issue could be solved correctly by making the string matching configurable via /etc/vdpau_wrapper.cfg in the libvdpau bundled with the driver.

Is this a viable change request?