Bug 18949 - mpeg transport stream data reported to be "application/x-linguist"
Summary: mpeg transport stream data reported to be "application/x-linguist"
Status: RESOLVED INVALID
Alias: None
Product: shared-mime-info
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Jonathan Blandford
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-08 06:53 UTC by Zeeshan Ali
Modified: 2008-12-08 12:51 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
mpeg transport stream data (1.00 KB, application/x-linguist)
2008-12-08 09:07 UTC, Zeeshan Ali
Details

Description Zeeshan Ali 2008-12-08 06:53:17 UTC
Calling g_content_type_guess() on a mpeg transport stream data, gives me "application/x-linguist". Most probably a shared-mime-info bug hence reporting it here.

Version of shared-mime-info: 0.51.
Comment 1 Bastien Nocera 2008-12-08 08:13:50 UTC
What did you pass to g_content_type_guess()? Could you make the file (or at least some part of it) available?
Comment 2 Zeeshan Ali 2008-12-08 08:22:09 UTC
(In reply to comment #1)
> What did you pass to g_content_type_guess()? Could you make the file (or at
> least some part of it) available?

  It's generated by dvb-daemon. I am assuming you have a working dvb-daemon on (any of) your machine but if i am wrong i don't think it's legal to share that file. :(
Comment 3 Bastien Nocera 2008-12-08 08:34:05 UTC
I don't have any gnome-dvb-daemon installations, so you'll have to get me even a portion of the file, otherwise I certainly won't be able to fix the bug.
Comment 4 Zeeshan Ali 2008-12-08 08:36:32 UTC
(In reply to comment #3)
> I don't have any gnome-dvb-daemon installations, so you'll have to get me even
> a portion of the file, otherwise I certainly won't be able to fix the bug.
> 

Well, according to Christian, it's not illegal to do that so I'll provide you with that but how much of it do you need?
Comment 5 Bastien Nocera 2008-12-08 08:58:43 UTC
Enough to reproduce the bug? :)
Comment 6 Zeeshan Ali 2008-12-08 09:07:45 UTC
Created attachment 20900 [details]
mpeg transport stream data

Here you go :)
Comment 7 Zeeshan Ali 2008-12-08 09:08:43 UTC
As you can see, bugzilla is also suffering from same problem. :)
Comment 8 Bastien Nocera 2008-12-08 09:19:37 UTC
  <mime-type type="application/x-linguist">
    <_comment>message catalog</_comment>
    <glob pattern="*.ts"/>
  </mime-type>

Yeah, not much to be gathered there. Why don't you check the actual data of the file instead of using its name to get the mime-type?
Comment 9 Bastien Nocera 2008-12-08 09:20:18 UTC
Or fix gnome-dvb-daemon to not use such a brain-dead suffix, say, use .mpeg instead...
Comment 10 Sebastian Pölsterl 2008-12-08 12:51:58 UTC
You're right Bastien it's much cleaner to use .mpeg instead of .ts. I committed the change to dvb-daemon. Sorry for causing this confusion.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.