mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 10:41:04 +00:00
prefer vorbisfile over vorbisdec
Original commit message from CVS: prefer vorbisfile over vorbisdec
This commit is contained in:
parent
ab558e6539
commit
a017253b70
2 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue