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.
What did you pass to g_content_type_guess()? Could you make the file (or at least some part of it) available?
(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. :(
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.
(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?
Enough to reproduce the bug? :)
Created attachment 20900 [details] mpeg transport stream data Here you go :)
As you can see, bugzilla is also suffering from same problem. :)
<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?
Or fix gnome-dvb-daemon to not use such a brain-dead suffix, say, use .mpeg instead...
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.