From 4bcfd025f30ddb860e81c5108d7f8012c2efc2e1 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Sun, 5 Feb 2006 03:05:41 +0000 Subject: [PATCH] Add Dirac typefinding and add dirac format to oggmux. Original commit message from CVS: * ext/ogg/gstoggmux.c: * gst/typefind/gsttypefindfunctions.c: Add Dirac typefinding and add dirac format to oggmux. --- ChangeLog | 6 ++++++ ext/ogg/gstoggmux.c | 2 +- gst/typefind/gsttypefindfunctions.c | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 059fb0948e..6a245bba80 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-02-04 David Schleef + + * ext/ogg/gstoggmux.c: + * gst/typefind/gsttypefindfunctions.c: + Add Dirac typefinding and add dirac format to oggmux. + 2006-02-03 Tim-Philipp Müller * gst/playback/gstdecodebin.c: (try_to_link_1): diff --git a/ext/ogg/gstoggmux.c b/ext/ogg/gstoggmux.c index 320b59316f..c76b5c980e 100644 --- a/ext/ogg/gstoggmux.c +++ b/ext/ogg/gstoggmux.c @@ -165,7 +165,7 @@ static GstStaticPadTemplate sink_factory = GST_STATIC_PAD_TEMPLATE ("sink_%d", GST_PAD_REQUEST, GST_STATIC_CAPS ("video/x-theora; " "audio/x-vorbis; audio/x-flac; audio/x-speex; " - "application/x-ogm-video; application/x-ogm-audio") + "application/x-ogm-video; application/x-ogm-audio; video/x-dirac") ); static void gst_ogg_mux_base_init (gpointer g_class); diff --git a/gst/typefind/gsttypefindfunctions.c b/gst/typefind/gsttypefindfunctions.c index 99bebc33ad..4ce0db164d 100644 --- a/gst/typefind/gsttypefindfunctions.c +++ b/gst/typefind/gsttypefindfunctions.c @@ -2233,6 +2233,8 @@ plugin_init (GstPlugin * plugin) ar_type_find, ar_exts, AR_CAPS, NULL, NULL); TYPE_FIND_REGISTER (plugin, "application/x-ms-dos-executable", GST_RANK_SECONDARY, msdos_type_find, msdos_exts, MSDOS_CAPS, NULL, NULL); + TYPE_FIND_REGISTER_START_WITH (plugin, "video/x-dirac", + GST_RANK_PRIMARY, NULL, "BBCD", 4, GST_TYPE_FIND_LIKELY); return TRUE; }