From 417107b40eb3a7c126c182ca1714c43b454dc547 Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Tue, 4 Sep 2007 01:50:55 +0000 Subject: [PATCH] gst/typefind/gsttypefindfunctions.c (plugin_init): Add an audio/x-nsf typefind function for the nsfdec element. Original commit message from CVS: 2007-09-03 Johan Dahlin * gst/typefind/gsttypefindfunctions.c (plugin_init): Add an audio/x-nsf typefind function for the nsfdec element. --- ChangeLog | 5 +++++ gst/typefind/gsttypefindfunctions.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 996cc7e35e..18e941fc80 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-09-03 Johan Dahlin + + * gst/typefind/gsttypefindfunctions.c (plugin_init): + Add an audio/x-nsf typefind function for the nsfdec element. + 2007-09-03 Renato Filho * gst/playback/gstplaybasebin.c: Included "myth://" on stream_uris list for enable buffering to mythtv files diff --git a/gst/typefind/gsttypefindfunctions.c b/gst/typefind/gsttypefindfunctions.c index cc64efb2c0..7042c8d3b3 100644 --- a/gst/typefind/gsttypefindfunctions.c +++ b/gst/typefind/gsttypefindfunctions.c @@ -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; }