summaryrefslogtreecommitdiffstats
path: root/ext/shout2
diff options
context:
space:
mode:
authorChristian Schaller <uraeus@gnome.org>2003-02-23 21:01:24 +0000
committerChristian Schaller <uraeus@gnome.org>2003-02-23 21:01:24 +0000
commitfcb030b8638590e851f161273166131c56f2959c (patch)
tree5089efbb79756107bcd797c39a16d40f781d3dfd /ext/shout2
parent4f386b9de72176d1f697ca852bfce742462a0b14 (diff)
state change fixes from Pedro Corte-Real for shout and shout2 plugins
Original commit message from CVS: state change fixes from Pedro Corte-Real for shout and shout2 plugins
Diffstat (limited to 'ext/shout2')
-rw-r--r--ext/shout2/gstshout2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/shout2/gstshout2.c b/ext/shout2/gstshout2.c
index 4a056ab5..d44d9a2d 100644
--- a/ext/shout2/gstshout2.c
+++ b/ext/shout2/gstshout2.c
@@ -19,6 +19,7 @@
#include "gstshout2.h"
#include <stdlib.h>
+#include <string.h>
/* elementfactory information */
static GstElementDetails shout2send_details = {
@@ -489,14 +490,13 @@ gst_shout2send_change_state (GstElement *element)
g_print ("connected to server...\n");
}
else {
- /* changed from g_warning, and included result code lookup. */
- g_error ("couldn't connect to server...");
+ g_warning ("Couldn't connect to server: %s", shout_get_error(shout2send->conn));
shout_close (shout2send->conn);
shout_free (shout2send->conn);
return GST_STATE_FAILURE;
}
break;
- case GST_STATE_READY_TO_NULL:
+ case GST_STATE_PAUSED_TO_READY:
shout_close (shout2send->conn);
shout_free (shout2send->conn);
break;