[VDPAU] [PATCH] Detect libflashplayer through /proc/self/maps

Aaron Plattner aplattner at nvidia.com
Wed Nov 20 09:58:56 PST 2013

On 11/20/13 07:33, Jeroen Roovers wrote:
> On Tue, 19 Nov 2013 15:41:11 -0800
> Aaron Plattner <aplattner at nvidia.com> wrote:
>> On 11/12/13 15:44, Jeroen Roovers wrote:
>>> Parsing /proc/self/cmdline does not always detect libflashplayer
>>> since not every browser includes that string. /proc/self/maps will
>>> always map the library we are looking for, so we use that instead.
>> Thanks for the patch, Jeroen.
>> Which browser, specifically, does this patch fix?  All I can glean
>> from the discussion above is that this doesn't break Firefox.
> I previously tried with any Linux-supported web browser that I could
> find. However, the patch was based on a Gentoo bug report[1] about the
> Opera web browser[2].
> Seamonkey names libflashplayer in argv:
> /usr/lib64/seamonkey/plugin-container /usr/lib64/nsbrowser/plugins/libflashplayer.so
> -greomni /usr/lib64/seamonkey/omni.ja -appdir /usr/lib64/seamonkey
> 10321 plugin
> As does Firefox:
> /opt/firefox/plugin-container /usr/lib64/nsbrowser/plugins/libflashplayer.so
> -greomni /opt/firefox/omni.ja -appomni /opt/firefox/browser/omni.ja
> -appdir /opt/firefox/browser 10479 true plugin
> Whilst Opera (probably) does some IPC here after forking:
> /usr/lib64/opera/pluginwrapper/operapluginwrapper-native -multiproc
> 2,0.1.2201799,51,85,91 -logfolder /home/jeroen/.opera/logs/ -type native
> I'll test some more with WebKitGTK+/qtwebkit based browsers. Are there
> any others I should be thinking of?

The one I was worried about was Chrome with the PPAPI Flash player, but 
it looks like that's called libpepflashplayer.so and it doesn't load 
libflashplayer.so if the former exists.

The potential for some browser to use VDPAU directly for HTML5 rendering 
while libflashplayer is also loaded does make me nervous, but given that 
it fixes Opera and doesn't break Firefox/Seamonkey, I'll merge this, 
assuming your WebKit browser tests don't turn up any issues.

> Regards,
>       jer
> [1] https://bugs.gentoo.org/show_bug.cgi?id=473084
> [2] http://www.opera.com/

This email message is for the sole use of the intended recipient(s) and may contain
confidential information.  Any unauthorized review, use, disclosure or distribution
is prohibited.  If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.

More information about the VDPAU mailing list