diff options
author | Christian Schaller <uraeus@gnome.org> | 2003-02-23 21:01:23 +0000 |
---|---|---|
committer | Christian Schaller <uraeus@gnome.org> | 2003-02-23 21:01:23 +0000 |
commit | 4344085222ab51582fc1ce7e4976b23a879d589d (patch) | |
tree | c417a9a5dbf96c5a6f82fd1b33292ee83c4a1fae /ext/shout | |
parent | 6fdb0b803915e870a9354e12eb76a6e208371f2b (diff) | |
download | gst-plugins-bad-4344085222ab51582fc1ce7e4976b23a879d589d.tar.gz gst-plugins-bad-4344085222ab51582fc1ce7e4976b23a879d589d.tar.bz2 gst-plugins-bad-4344085222ab51582fc1ce7e4976b23a879d589d.zip |
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/shout')
-rw-r--r-- | ext/shout/gstshout.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ext/shout/gstshout.c b/ext/shout/gstshout.c index 1c94e903..1b8b3697 100644 --- a/ext/shout/gstshout.c +++ b/ext/shout/gstshout.c @@ -397,7 +397,7 @@ gst_icecastsend_change_state (GstElement *element) /* if going down into NULL state, close the file if it's open */ switch (GST_STATE_TRANSITION (element)) { - case GST_STATE_NULL_TO_READY: + case GST_STATE_READY_TO_NULL: shout_init_connection (&icecastsend->conn); /* --- FIXME: shout requires an ip, and fails if it is given a host. */ @@ -422,13 +422,14 @@ gst_icecastsend_change_state (GstElement *element) g_print ("connected to server...\n"); } else { - /* changed from g_warning, and included result code lookup. */ - g_warning ("couldn't connect to server... (%i: %s)\n", icecastsend->conn.error, SHOUT_ERRORS[icecastsend->conn.error]); + g_warning ("couldn't connect to server... (%i: %s)\n", + icecastsend->conn.error, + SHOUT_ERRORS[icecastsend->conn.error]); shout_disconnect (&icecastsend->conn); return GST_STATE_FAILURE; } break; - case GST_STATE_READY_TO_NULL: + case GST_STATE_PAUSED_TO_READY: shout_disconnect (&icecastsend->conn); break; default: |