summaryrefslogtreecommitdiff
path: root/gst/festival
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sourceforge.net>2008-07-09 12:13:09 +0000
committerStefan Kost <ensonic@users.sourceforge.net>2008-07-09 12:13:09 +0000
commit925ee0d23fc0778573e7e08848dc89acfe1d90d1 (patch)
tree4e3abcedf6ae9372b6aae4c70d318b2e8d8554cf /gst/festival
parent18d3b8fb9601d4e7b6b7b9f0e6330f727ce17cc9 (diff)
downloadgstreamer-plugins-bad-925ee0d23fc0778573e7e08848dc89acfe1d90d1.tar.gz
gst/festival/gstfestival.c: Add a note to the docs, that festival need to be running. Also log an error it it is not....
Original commit message from CVS: * gst/festival/gstfestival.c: Add a note to the docs, that festival need to be running. Also log an error it it is not. Fixes #541327
Diffstat (limited to 'gst/festival')
-rw-r--r--gst/festival/gstfestival.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/gst/festival/gstfestival.c b/gst/festival/gstfestival.c
index f2ce45a67..d67c5403b 100644
--- a/gst/festival/gstfestival.c
+++ b/gst/festival/gstfestival.c
@@ -64,13 +64,14 @@
* SECTION:element-festival
*
* This element connects to a
- * <ulink url="http://www.festvox.org/festival/index.html">festival</ulink> server
- * process and uses it to synthesize speech.
+ * <ulink url="http://www.festvox.org/festival/index.html">festival</ulink>
+ * server process and uses it to synthesize speech. Festival need to run already
+ * in server mode, started as <screen>festival --server</screen>
*
* <refsect2>
* <title>Example pipeline</title>
* |[
- * echo "hi" | gst-launch fdsrc fd=0 ! festival ! wavparse ! audioconvert ! alsasink
+ * echo 'Hello G-Streamer!' | gst-launch fdsrc fd=0 ! festival ! wavparse ! audioconvert ! alsasink
* ]|
* </refsect2>
*/
@@ -462,8 +463,11 @@ gst_festival_open (GstFestival * festival)
festival->info->server_fd =
festival_socket_open (festival->info->server_host,
festival->info->server_port);
- if (festival->info->server_fd == -1)
+ if (festival->info->server_fd == -1) {
+ GST_ERROR
+ ("Could not talk to festival server (no server running or wrong host/port?)");
return FALSE;
+ }
return TRUE;
}