After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 639958 - Add MIME types to totem-pl-parser, for audio/x-ms-wma
Add MIME types to totem-pl-parser, for audio/x-ms-wma
Status: RESOLVED FIXED
Product: totem-pl-parser
Classification: Core
Component: General
unspecified
Other Linux
: Normal normal
: ---
Assigned To: totem-pl-parser-maint
totem-pl-parser-maint
Depends on:
Blocks:
 
 
Reported: 2011-01-19 15:24 UTC by Philip Van Hoof
Modified: 2011-01-19 16:14 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch that adds this MIME type (873 bytes, patch)
2011-01-19 15:25 UTC, Philip Van Hoof
none Details | Review
Another patch with some more MIME types to add (870 bytes, patch)
2011-01-19 15:26 UTC, Philip Van Hoof
none Details | Review
File used while testing the patches (176 bytes, audio/x-ms-wma)
2011-01-19 15:44 UTC, Philip Van Hoof
  Details

Description Philip Van Hoof 2011-01-19 15:24:42 UTC
Attached patch that does this
Comment 1 Philip Van Hoof 2011-01-19 15:25:08 UTC
Created attachment 178735 [details] [review]
Patch that adds this MIME type
Comment 2 Philip Van Hoof 2011-01-19 15:26:25 UTC
Created attachment 178736 [details] [review]
Another patch with some more MIME types to add
Comment 3 Bastien Nocera 2011-01-19 15:29:41 UTC
Review of attachment 178735 [details] [review]:

Where did you find a .wma file that was actually an ASF redirection?
Comment 4 Bastien Nocera 2011-01-19 15:30:08 UTC
Review of attachment 178736 [details] [review]:

::: plparse/totem-pl-parser.c
@@ +200,3 @@
 	PLAYLIST_TYPE ("audio/x-ms-wax", totem_pl_parser_add_asx, NULL, FALSE),
+	PLAYLIST_TYPE ("application/x-ms-asx", totem_pl_parser_add_asx, NULL, FALSE),
+	PLAYLIST_TYPE ("audio/x-ms-asx", totem_pl_parser_add_asx, NULL, FALSE),

Where do those mime-types come from?
Comment 5 Philip Van Hoof 2011-01-19 15:44:46 UTC
Created attachment 178739 [details]
File used while testing the patches
Comment 6 Philip Van Hoof 2011-01-19 15:45:46 UTC
(In reply to comment #4)
> Review of attachment 178736 [details] [review]:
> 
> ::: plparse/totem-pl-parser.c
> @@ +200,3 @@
>      PLAYLIST_TYPE ("audio/x-ms-wax", totem_pl_parser_add_asx, NULL, FALSE),
> +    PLAYLIST_TYPE ("application/x-ms-asx", totem_pl_parser_add_asx, NULL,
> FALSE),
> +    PLAYLIST_TYPE ("audio/x-ms-asx", totem_pl_parser_add_asx, NULL, FALSE),
> 
> Where do those mime-types come from?

No idea about this to be honest. That patch is one that we have been carrying around for longer and I need to check with a team-member how and why it was decided to add the MIME types this way.
Comment 7 Bastien Nocera 2011-01-19 16:14:46 UTC
(In reply to comment #3)
> Review of attachment 178735 [details] [review]:
> 
> Where did you find a .wma file that was actually an ASF redirection?

I updated the test suite as well.

(In reply to comment #6)
<snip>
> No idea about this to be honest. That patch is one that we have been carrying
> around for longer and I need to check with a team-member how and why it was
> decided to add the MIME types this way.

video/x-ms-wvx is already an alias for audio/x-ms-asx, and I added application/x-ms-asx to shared-mime-info.