typefind: add photoshop typefind functions
authorJonathan Matthew <notverysmart at gmail dot com>
Mon, 9 Mar 2009 15:19:40 +0000 (16:19 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Mon, 9 Mar 2009 15:19:40 +0000 (16:19 +0100)
Add photoshop typefind functions.
Fixes #574516.

gst/typefind/gsttypefindfunctions.c

index 0f170c5c50aa76f77cf0ed0f7b5ed6f62d3ef9cc..d199a56ae8a0b22479c62c1fbf86eacb929b9a29 100644 (file)
@@ -3197,6 +3197,7 @@ plugin_init (GstPlugin * plugin)
   static gchar *mxf_exts[] = { "mxf", NULL };
   static gchar *msword_exts[] = { "doc", NULL };
   static gchar *dsstore_exts[] = { "DS_Store", NULL };
+  static gchar *psd_exts[] = { "psd", NULL };
 
   GST_DEBUG_CATEGORY_INIT (type_find_debug, "typefindfunctions",
       GST_DEBUG_FG_GREEN | GST_DEBUG_BG_RED, "generic type find functions");
@@ -3425,6 +3426,9 @@ plugin_init (GstPlugin * plugin)
   TYPE_FIND_REGISTER_START_WITH (plugin, "application/octet-stream",
       GST_RANK_SECONDARY, dsstore_exts, "\000\000\000\001Bud1", 8,
       GST_TYPE_FIND_LIKELY);
+  TYPE_FIND_REGISTER_START_WITH (plugin, "image/vnd.adobe.photoshop",
+      GST_RANK_SECONDARY, psd_exts, "8BPS\000\001\000\000\000\000", 10,
+      GST_TYPE_FIND_LIKELY);
   return TRUE;
 }