From a017253b70c11d65e54330c1857746b12fac247d Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Sun, 16 Jun 2002 22:03:52 +0000 Subject: [PATCH] prefer vorbisfile over vorbisdec Original commit message from CVS: prefer vorbisfile over vorbisdec --- ext/vorbis/vorbis.c | 2 +- ext/vorbis/vorbisfile.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/vorbis/vorbis.c b/ext/vorbis/vorbis.c index f23c44346c..20cca01ad3 100644 --- a/ext/vorbis/vorbis.c +++ b/ext/vorbis/vorbis.c @@ -131,7 +131,6 @@ plugin_init (GModule *module, GstPlugin *plugin) dec = gst_element_factory_new("vorbisdec",GST_TYPE_VORBISDEC, &vorbisdec_details); g_return_val_if_fail(dec != NULL, FALSE); - gst_element_factory_set_rank (dec, GST_ELEMENT_RANK_PRIMARY); /* register sink pads */ dec_sink_template = gst_pad_template_new ("sink", GST_PAD_SINK, @@ -152,6 +151,7 @@ plugin_init (GModule *module, GstPlugin *plugin) file = gst_element_factory_new("vorbisfile", vorbisfile_get_type(), &vorbisfile_details); g_return_val_if_fail(file != NULL, FALSE); + gst_element_factory_set_rank (file, GST_ELEMENT_RANK_PRIMARY); /* register sink pads */ gst_element_factory_add_pad_template (file, dec_sink_template); diff --git a/ext/vorbis/vorbisfile.c b/ext/vorbis/vorbisfile.c index 9a594f01c6..f492be9909 100644 --- a/ext/vorbis/vorbisfile.c +++ b/ext/vorbis/vorbisfile.c @@ -259,6 +259,8 @@ gst_vorbisfile_read (void *ptr, size_t size, size_t nmemb, void *datasource) } } + //gst_util_dump_mem (data, got_bytes); + memcpy (ptr, data, got_bytes); gst_bytestream_flush_fast (vorbisfile->bs, got_bytes);