prefer vorbisfile over vorbisdec

Original commit message from CVS:
prefer vorbisfile over vorbisdec
This commit is contained in:
Wim Taymans 2002-06-16 22:03:52 +00:00
parent ab558e6539
commit a017253b70
2 changed files with 3 additions and 1 deletions

View file

@ -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);

View file

@ -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);