diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2002-06-16 22:03:52 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2002-06-16 22:03:52 +0000 |
commit | a017253b70c11d65e54330c1857746b12fac247d (patch) | |
tree | 476cd0654397811234ff2e929a45cb7a87734336 | |
parent | ab558e6539a12b6514387cc0763d34c59dd66e3e (diff) |
prefer vorbisfile over vorbisdec
Original commit message from CVS:
prefer vorbisfile over vorbisdec
-rw-r--r-- | ext/vorbis/vorbis.c | 2 | ||||
-rw-r--r-- | ext/vorbis/vorbisfile.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/ext/vorbis/vorbis.c b/ext/vorbis/vorbis.c index f23c44346..20cca01ad 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 9a594f01c..f492be990 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); |