diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2012-07-10 12:10:28 +0200 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2012-07-10 12:19:17 +0200 |
commit | 29092cc3b8d339c1f38c4fda95cca23c60bf1586 (patch) | |
tree | 4956dc7f5f59b25be56d647ebf96b90d1ff8a8cc | |
parent | 68fadbb92aa13c9a571dfd7ceb6e518c362afed2 (diff) | |
download | gstreamer-plugins-bad-29092cc3b8d339c1f38c4fda95cca23c60bf1586.tar.gz |
festival: unmap input buffer
-rw-r--r-- | gst/festival/gstfestival.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gst/festival/gstfestival.c b/gst/festival/gstfestival.c index 075df746a..faced1f87 100644 --- a/gst/festival/gstfestival.c +++ b/gst/festival/gstfestival.c @@ -171,7 +171,7 @@ G_DEFINE_TYPE (GstFestival, gst_festival, GST_TYPE_ELEMENT) gst_element_class_set_details_simple (gstelement_class, "Festival Text-to-Speech synthesizer", "Filter/Effect/Audio", "Synthesizes plain text into audio", - "Wim Taymans <wim.taymans@chello.be>"); + "Wim Taymans <wim.taymans@gmail.com>"); } static void @@ -283,9 +283,9 @@ gst_festival_chain (GstPad * pad, GstObject * parent, GstBuffer * buf) } fprintf (fd, "(tts_textall \""); - gst_buffer_map (buf, &info, GST_MAP_WRITE); + gst_buffer_map (buf, &info, GST_MAP_READ); p = info.data; - ep = p + gst_buffer_get_size (buf); + ep = p + info.size; for (; p < ep && (*p != '\0'); p++) { if ((*p == '"') || (*p == '\\')) { putc ('\\', fd); @@ -295,6 +295,7 @@ gst_festival_chain (GstPad * pad, GstObject * parent, GstBuffer * buf) } fprintf (fd, "\" \"%s\")\n", festival->info->text_mode); fclose (fd); + gst_buffer_unmap (buf, &info); GST_DEBUG_OBJECT (festival, "issued tts_textall command"); |