Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 102222 - Patch for mplayerplug-in to allow easy disabling of only audio files
Summary: Patch for mplayerplug-in to allow easy disabling of only audio files
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2005-08-12 04:38 UTC by Stephan Sokolow
Modified: 2005-09-09 16:07 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
A working patch to implement support for the enable-audio flag in mplayerplug-in.conf (mplayerplug-in-2.85-make_audio_optional.patch,3.07 KB, patch)
2005-08-12 04:40 UTC, Stephan Sokolow
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Sokolow 2005-08-12 04:38:05 UTC
The attached patch will add support for an enable-audio switch in the
mplayerplug-in configuration files so that users can enable embedded video
without opening the door to background music on poorly-designed sites.

This not only decreases annoyance, it improves page load times and, merely by
statistics, reduces the chance of falling victim to a browser-crashing bug in
mplayerplug-in (I've encountered them every now and then).

Despite my use of Deer Park alpha 2 to post this, I can vouch for this patch and
the reasons behind it when mplayerplug-in is used with Firefox 1.0.x.


Reproducible: Always
Steps to Reproduce:
Go to a site with background music
Actual Results:  
Annoying background music plays after it takes extra time to load mplayerplug-in

Expected Results:  
There should be a simple way for me to disable the playing of audio files so it
displays a "plugin required" note after rendering the page quickly.
Comment 1 Stephan Sokolow 2005-08-12 04:40:44 UTC
Created attachment 65749 [details, diff]
A working patch to implement support for the enable-audio flag in mplayerplug-in.conf

By virtue of the overlay, I'm using this without problem right now. I can also
confidently say that, unless the code blocks I duplicated had runtime bugs,
this won't have runtime bugs either.
Comment 2 Kevin DeKorte 2005-08-17 21:17:06 UTC
This patch is being rejected upstream by the mplayerplug-in developer (me), as
this is the wrong way to do this and will inadvertantly disable media on sites
where it is wanted. 

Probably a better patch would do do this deeper in the code and if the Window is
Null or 0 then the play should not start. I will consider a patch that does that.

Comment 3 Joe Jezak (RETIRED) gentoo-dev 2005-09-09 16:07:37 UTC
Alright then, closing as invalid.  If there's a new patch, run it by upstream
first.  Thanks!