mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 14:06:23 +00:00
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
This commit is contained in:
parent
18d3b8fb96
commit
925ee0d23f
2 changed files with 14 additions and 4 deletions
|
@ -1,3 +1,9 @@
|
|||
2008-07-09 Stefan Kost <ensonic@users.sf.net>
|
||||
|
||||
* 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
|
||||
|
||||
2008-07-08 Thijs Vermeir <thijsvermeir@gmail.com>
|
||||
|
||||
patch by: Ilja Pavkovic <illsen@gumblfarz.de>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue