gst/typefind/gsttypefindfunctions.c (plugin_init): Add an audio/x-nsf typefind functi...
authorJohan Dahlin <johan@gnome.org>
Tue, 4 Sep 2007 01:50:55 +0000 (01:50 +0000)
committerJohan Dahlin <johan@gnome.org>
Tue, 4 Sep 2007 01:50:55 +0000 (01:50 +0000)
Original commit message from CVS:
2007-09-03  Johan Dahlin  <jdahlin@async.com.br>

* gst/typefind/gsttypefindfunctions.c (plugin_init):
Add an audio/x-nsf typefind function for the nsfdec element.

ChangeLog
gst/typefind/gsttypefindfunctions.c

index 996cc7e..18e941f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-09-03  Johan Dahlin  <jdahlin@async.com.br>
+
+       * gst/typefind/gsttypefindfunctions.c (plugin_init): 
+       Add an audio/x-nsf typefind function for the nsfdec element.
+
 2007-09-03  Renato Filho  <renato.filho@indt.org.br>
        * gst/playback/gstplaybasebin.c:
        Included "myth://" on stream_uris list for enable buffering to mythtv files
index cc64efb..7042c8d 100644 (file)
@@ -2834,6 +2834,7 @@ plugin_init (GstPlugin * plugin)
   static gchar *m4v_exts[] = { "m4v", NULL };
   static gchar *nuv_exts[] = { "nuv", NULL };
   static gchar *vivo_exts[] = { "viv", NULL };
+  static gchar *nsf_exts[] = { "nsf", NULL };
 
   GST_DEBUG_CATEGORY_INIT (type_find_debug, "typefindfunctions",
       GST_DEBUG_FG_GREEN | GST_DEBUG_BG_RED, "generic type find functions");
@@ -3029,6 +3030,8 @@ plugin_init (GstPlugin * plugin)
       mmsh_type_find, NULL, MMSH_CAPS, NULL, NULL);
   TYPE_FIND_REGISTER (plugin, "video/vivo", GST_RANK_SECONDARY,
       vivo_type_find, vivo_exts, VIVO_CAPS, NULL, NULL);
+  TYPE_FIND_REGISTER_START_WITH (plugin, "audio/x-nsf",
+      GST_RANK_SECONDARY, nsf_exts, "NESM\x1a", 5, GST_TYPE_FIND_MAXIMUM);
   return TRUE;
 }