Closed
Bug 137535
Opened 23 years ago
Closed 22 years ago
[Mach-O] support BP_GetSupportedMIMETypes so Quicktime will play MPEGs
Categories
(Core Graveyard :: Plug-ins, defect, P3)
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla1.3alpha
People
(Reporter: peterlubczynski-bugs, Assigned: peterl-bugs)
References
Details
(Whiteboard: [PL2:P3])
Attachments
(1 file, 2 obsolete files)
7.61 KB,
patch
|
beard
:
superreview+
|
Details | Diff | Splinter Review |
This is an offshoot from bug 113464 where the extra entry points
BP_GetSupportedMIMETypes and NP_GetMIMEDescription started being supported on
Carbon builds for MPEGs to work with Quicktime. This bug is about porting those
changes to the Mach-O build (nsPluginsDirDarwin.cpp).
Updated•23 years ago
|
Priority: -- → P3
Target Milestone: --- → mozilla1.1beta
Updated•22 years ago
|
Target Milestone: mozilla1.1beta → mozilla1.2beta
Reporter | ||
Updated•22 years ago
|
Target Milestone: mozilla1.2beta → mozilla1.3alpha
Reporter | ||
Comment 1•22 years ago
|
||
*** Bug 178422 has been marked as a duplicate of this bug. ***
Comment 2•22 years ago
|
||
We need this for chimera too. Anyone have a testcase?
Reporter | ||
Comment 3•22 years ago
|
||
see about:plugins, QT only lists 30 mime types in Mach-O beginning with
video/quicktime but CFM lists 45 types beginning with application/sdp.
The code that does this in the CFM build is here:
http://lxr.mozilla.org/mozilla/source/modules/plugin/base/src/nsPluginsDirMac.cpp#256
Reporter | ||
Updated•22 years ago
|
Status: NEW → ASSIGNED
Summary: support BP_GetSupportedMIMETypes on Mach-O builds → [Mach-O] support BP_GetSupportedMIMETypes so Quicktime will play MPEGs
Comment 4•22 years ago
|
||
I lifted the impl of GetPluginInfo() from nsPluginsDirMac.cpp and got it
compiling in nsPluginsDirDarwin.cpp but we're still not picking up the mime
types from the alternate entry point in the QT plugin. I figured I go ahead
and post the patch in case it was a useful starting point.
Reporter | ||
Comment 5•22 years ago
|
||
Here's the last patch but with the plugin version constant incremented to cause
us to re-scan all plugin on next launch. Which this patch I'm seeing the extra
mime types show up in about:plugins.
TODO:
- garbage text is showing up in the mime type fields in Apple's java plugin in
about:plugins
TO TEST:
- turning off a mime type in the QT control panel gets refected in
about:plugins (does plugin need to be stat'ed?)
Reporter | ||
Updated•22 years ago
|
Attachment #106318 -
Attachment is obsolete: true
Reporter | ||
Comment 6•22 years ago
|
||
Comment on attachment 106375 [details] [diff] [review]
patch v.2 (to Chimera tree)
Changing the mime types in the QT control panel isn't going to take effect
because we don't query the plugin if the timestamp doesn't change. This is the
same problem as is already described with 'plugger' on Linux in bug 125469 and
also happens on CFM.
Opend bug 181010 about the garbled text. It needs to be fixed on CFM too.
Those bugs shouldn't hold up at least getting MPEGS working.
Attachment #106375 -
Flags: superreview?(beard)
Attachment #106375 -
Flags: review?(sdagley)
Updated•22 years ago
|
Attachment #106375 -
Flags: review?(sdagley) → review+
Comment 7•22 years ago
|
||
printf("[loaded plugin %s]\n", path);
+ pLibrary = outLibrary;
return NS_OK;
Please #ifdef DEBUG the printf.
The rest looks OK, but would be easier to read with a diff -w.
Comment 9•22 years ago
|
||
Looks good to me. If beard doesn't get to the SR, I can do it.
Comment 10•22 years ago
|
||
Comment on attachment 106872 [details] [diff] [review]
patch v.2.1
No need to initialize rv here:
+ nsresult rv = NS_ERROR_FAILURE;
+ rv = ParsePluginMimeDescription(pfnGetMimeDesc(), info);
In fact, you might as well declare rv at the top level of this function, since
it already seems to have an nsresult code.
Attachment #106872 -
Flags: superreview-
Comment 11•22 years ago
|
||
Comment on attachment 106872 [details] [diff] [review]
patch v.2.1
Other than that, sr=beard.
Attachment #106872 -
Flags: superreview- → superreview+
Reporter | ||
Comment 12•22 years ago
|
||
patch in trunk, marking FIXED.
Simon, can you check this into the Chimera tree?
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Comment 13•22 years ago
|
||
Will do.
Comment 14•22 years ago
|
||
I checked this patch into the Chimera branch.
Comment 15•22 years ago
|
||
Excellent.. Confirming video/mp4 is registered by the QT plugin and shows up in
the about:plugins window. Test case now shows the QT content.
http://bugzilla.mozilla.org/attachment.cgi?id=105206&action=view
Status: RESOLVED → VERIFIED
Updated•22 years ago
|
Attachment #106375 -
Flags: superreview?(beard)
Updated•3 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•