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 694814 - Improve mimeparsing
Improve mimeparsing
Status: RESOLVED FIXED
Product: rygel
Classification: Applications
Component: general
0.17.x
Other Linux
: Normal normal
: ---
Assigned To: Jens Georg
rygel-maint
Depends on:
Blocks:
 
 
Reported: 2013-02-27 19:45 UTC by Anders d
Modified: 2013-04-13 12:07 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
renderer: Improve mime-type comparing (3.45 KB, patch)
2013-03-16 19:22 UTC, Jens Georg
committed Details | Review
C file (95.69 KB, text/x-csrc)
2013-03-31 10:06 UTC, Jens Georg
  Details

Description Anders d 2013-02-27 19:45:02 UTC
Im opening this bug report after a conversation on the mailinglist.

If a http stream identifies itself with for example "audio/L16; rate=44100; channels=2" rygel wont identify it as a stream it support. Afaik the whitespaces screw up the comparison.

If you do start to implement better parsing remember to handle UPPER and lower case aswell.
Comment 1 Jens Georg 2013-03-16 19:22:47 UTC
Created attachment 239034 [details] [review]
renderer: Improve mime-type comparing
Comment 2 Anders d 2013-03-18 18:50:45 UTC
could i bother you about a generated c-file for this aswell =)
Comment 3 Jens Georg 2013-03-31 10:06:02 UTC
Created attachment 240193 [details]
C file

The patch does a little bit more, but this is the important change.
Comment 4 Anders d 2013-04-08 20:41:45 UTC
So i have tried this patch and it works great!

thanks again
Comment 5 Jens Georg 2013-04-13 12:06:58 UTC
Attachment 239034 [details] pushed as 64f65d1 - renderer: Improve mime-type comparing