Sebastian Dröge
182e751b5d
xdgmime: Always use GLib instead of xdgmime
...
Now that we depend on GLib 2.16 we can as well use it's
internal copy of the xdgmime instead of our own.
2009-08-31 08:14:10 +02:00
Sebastian Dröge
eaea85ed4a
xdgmime: Use GIOs g_content_type_guess() if possible
2009-03-26 12:10:05 +01:00
Руслан Ижбулатов
f5b298e3d7
xdgmime: Link with winsock library to fix build with MinGW
...
Partially fixes bug #573595 .
2009-03-26 11:33:50 +01:00
Tim-Philipp Müller
7a85af3ce6
xdgmime: make xdg typefinder more conservative
...
The whole raison d'etre of this typefinder is to help avoid false
positives when used in combination with our main typefinder in
-base. Its task is not really to typefind audio/video files, even
less so given that it detects *MIME* types, not GStreamer media
types. Therefore, if this typefinder detects an audio or video
type, don't even suggest it - our own typefinders are hopefully
better at this and detect the right type of type on top of that,
and even if they're not we really want to know about it and fix
it. Fixes #575157 .
2009-03-13 22:53:21 +00:00
Sebastian Dröge
f429818589
xdgmime: Reduce probability to POSSIBLE
2009-03-02 16:29:01 +01:00
Sebastian Dröge
de61b45025
xdgmime: Add locking to the xdg_mime_* calls as it's not thread-safe
2009-03-02 16:27:55 +01:00
Sebastian Dröge
f957ee0aeb
xdgmime: Use g_pattern_match_simple() instead of fnmatch() for Win32 compatibility
2009-03-01 20:18:30 +01:00
LRN
e571138ef6
xdgmime: Fix unused variable compiler warning
2009-03-01 20:13:31 +01:00
Sebastian Dröge
8c4584aa56
xdgmime: Don't warn if we have no MMAP support
2009-03-01 20:12:12 +01:00
Sebastian Dröge
39850d674e
xdgmime: Use g_ntoh[ls] instead of the non-GLib functions for Win32 compatibility
2009-03-01 20:11:07 +01:00
Sebastian Dröge
b30926428d
xdgmime: Use G_BYTE_ORDER instead of relying on LITTLE_ENDIAN to be defined
2009-03-01 20:09:24 +01:00
Sebastian Dröge
546bfbecb8
xdgmime: Use empty caps for registering the typefinders with old core versions
...
core before 0.10.22.1 produced assertions when storing typefind factories
with NULL caps in the registry.
2009-02-27 20:21:23 +01:00
Sebastian Dröge
ab1c576ec2
xdgmime: Add new typefinder based on xdgmime
...
This typefinder is mostly useful to filter out any false positives
by the other typefinders like the usual Word document misdetected as
MP3 file.
2009-02-24 15:26:27 +01:00