From 51038d70aacb27b71ecccbd11f3a9ddfeb0bdd43 Mon Sep 17 00:00:00 2001 From: Stefan Sauer Date: Tue, 17 Dec 2013 18:04:33 +0100 Subject: [PATCH] pbutils: add typefinder and descriptions for audio/x-xi xi files can be read by libsndfile. --- gst-libs/gst/pbutils/descriptions.c | 1 + gst/typefind/gsttypefindfunctions.c | 3 +++ tests/check/libs/pbutils.c | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gst-libs/gst/pbutils/descriptions.c b/gst-libs/gst/pbutils/descriptions.c index 2ed39673c1..fd919018a2 100644 --- a/gst-libs/gst/pbutils/descriptions.c +++ b/gst-libs/gst/pbutils/descriptions.c @@ -181,6 +181,7 @@ static const FormatInfo formats[] = { {"audio/x-wavpack-correction", "Wavpack", 0, "wpc"}, {"audio/x-wms", N_("Windows Media Speech"), FLAG_AUDIO, ""}, {"audio/x-voxware", "Voxware", FLAG_AUDIO, ""}, + {"audio/x-xi", "Fasttracker 2 Extended Instrument", FLAG_AUDIO, "xi"}, /* video formats with static descriptions */ diff --git a/gst/typefind/gsttypefindfunctions.c b/gst/typefind/gsttypefindfunctions.c index a5f6ca1c7f..d391df014d 100644 --- a/gst/typefind/gsttypefindfunctions.c +++ b/gst/typefind/gsttypefindfunctions.c @@ -5716,6 +5716,9 @@ plugin_init (GstPlugin * plugin) TYPE_FIND_REGISTER (plugin, "video/x-pva", GST_RANK_SECONDARY, pva_type_find, "pva", PVA_CAPS, NULL, NULL); + TYPE_FIND_REGISTER_START_WITH (plugin, "audio/x-xi", GST_RANK_SECONDARY, + "xi", "Extended Instrument: ", 21, GST_TYPE_FIND_MAXIMUM); + return TRUE; } diff --git a/tests/check/libs/pbutils.c b/tests/check/libs/pbutils.c index e39e7f4484..45a7ef554d 100644 --- a/tests/check/libs/pbutils.c +++ b/tests/check/libs/pbutils.c @@ -263,7 +263,7 @@ static const gchar *caps_strings[] = { "audio/x-svx", "audio/x-tta", "audio/x-ttafile", "audio/x-vnd.sony.atrac3", "audio/x-vorbis", "audio/x-voc", "audio/x-w64", "audio/x-wav", "audio/x-wavpack", "audio/x-wavpack-correction", - "audio/x-wms", "audio/x-voxware", "video/sp5x", "video/vivo", + "audio/x-wms", "audio/x-voxware", "audio/x-xi", "video/sp5x", "video/vivo", "video/x-4xm", "video/x-apple-video", "video/x-camtasia", "video/x-cdxa", "video/x-cinepak", "video/x-cirrus-logic-accupak", "video/x-compressed-yuv", "video/x-dirac", "subpicture/x-dvd",