mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
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
This commit is contained in:
parent
4f386b9de7
commit
fcb030b863
1 changed files with 3 additions and 3 deletions
|
@ -19,6 +19,7 @@
|
||||||
|
|
||||||
#include "gstshout2.h"
|
#include "gstshout2.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
/* elementfactory information */
|
/* elementfactory information */
|
||||||
static GstElementDetails shout2send_details = {
|
static GstElementDetails shout2send_details = {
|
||||||
|
@ -489,14 +490,13 @@ gst_shout2send_change_state (GstElement *element)
|
||||||
g_print ("connected to server...\n");
|
g_print ("connected to server...\n");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
/* changed from g_warning, and included result code lookup. */
|
g_warning ("Couldn't connect to server: %s", shout_get_error(shout2send->conn));
|
||||||
g_error ("couldn't connect to server...");
|
|
||||||
shout_close (shout2send->conn);
|
shout_close (shout2send->conn);
|
||||||
shout_free (shout2send->conn);
|
shout_free (shout2send->conn);
|
||||||
return GST_STATE_FAILURE;
|
return GST_STATE_FAILURE;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case GST_STATE_READY_TO_NULL:
|
case GST_STATE_PAUSED_TO_READY:
|
||||||
shout_close (shout2send->conn);
|
shout_close (shout2send->conn);
|
||||||
shout_free (shout2send->conn);
|
shout_free (shout2send->conn);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue