Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 364678 Details for
Bug 473084
x11-libs/libvdpau: the flashplayer anti-blue-people hack doesn't work on www-client/opera www-client/qupzilla
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
0001-Add-a-special-check-for-the-Opera-browser.patch
0001-Add-a-special-check-for-the-Opera-browser.patch (text/plain), 1.62 KB, created by
Jeroen Roovers (RETIRED)
on 2013-12-05 16:57:19 UTC
(
hide
)
Description:
0001-Add-a-special-check-for-the-Opera-browser.patch
Filename:
MIME Type:
Creator:
Jeroen Roovers (RETIRED)
Created:
2013-12-05 16:57:19 UTC
Size:
1.62 KB
patch
obsolete
>From 83716d026b310b9fbe161bdfb844113bce88ec0f Mon Sep 17 00:00:00 2001 >From: Jeroen Roovers <jer@gentoo.org> >Date: Thu, 5 Dec 2013 17:43:29 +0100 >Subject: [PATCH] Add a special check for the Opera browser > >--- > src/vdpau_wrapper.c | 27 ++++++++++++++++++++++++++- > 1 file changed, 26 insertions(+), 1 deletion(-) > >diff --git a/src/vdpau_wrapper.c b/src/vdpau_wrapper.c >index 9932937..c2eff15 100644 >--- a/src/vdpau_wrapper.c >+++ b/src/vdpau_wrapper.c >@@ -301,12 +301,14 @@ static void init_running_under_flash(void) > { > FILE *fp; > char buffer[1024]; >- int ret, i; >+ int _running_under_opera = 0, ret, i; > >+ /* Check for processes that list libflashplayer in argv() */ > fp = fopen("/proc/self/cmdline", "r"); > if (!fp) { > return; > } >+ > ret = fread(buffer, 1, sizeof(buffer) - 1, fp); > fclose(fp); > if (ret < 0) { >@@ -323,9 +325,32 @@ static void init_running_under_flash(void) > } > buffer[ret] = '\0'; > >+ if (strstr(buffer, "operapluginwrapper") != NULL) { >+ _running_under_opera = 1; >+ } > if (strstr(buffer, "libflashplayer") != NULL) { > _running_under_flash = 1; > } >+ >+ if(!_running_under_opera) { >+ return; >+ } >+ >+ /* Check for operapluginwrapper which does not list libflashplayer in argv() >+ * Check maps instead */ >+ fp = fopen("/proc/self/maps", "r"); >+ if (!fp) { >+ return; >+ } >+ >+ while(fgets(buffer, sizeof(buffer), fp)) { >+ if (strstr(buffer, "libflashplayer") != NULL) { >+ _running_under_flash = 1; >+ break; >+ } >+ } >+ >+ fclose(fp); > } > > static void init_config(void) >-- >1.8.3.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 473084
:
353790
|
354314
| 364678