--- plugins/rtp/rtpstream.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/plugins/rtp/rtpstream.c b/plugins/rtp/rtpstream.c index 36e8a65..f9c5c01 100644 --- a/plugins/rtp/rtpstream.c +++ b/plugins/rtp/rtpstream.c @@ -853,9 +853,9 @@ farsight_rtp_stream_bus_watch_cb (GstBus *bus, GstMessage *message, g_debug ("%s (%d): end of stream on stream pipeline from %s", __FUNCTION__, __LINE__, source_name); g_free (source_name); + farsight_rtp_stream_stop (stream); farsight_stream_signal_error (stream, FARSIGHT_STREAM_ERROR_EOS, NULL); - farsight_rtp_stream_stop (stream); break; } case GST_MESSAGE_ERROR: @@ -865,6 +865,7 @@ farsight_rtp_stream_bus_watch_cb (GstBus *bus, GstMessage *message, gst_message_parse_error (message, &err, &debug); + farsight_rtp_stream_stop (stream); if (err == NULL) { g_warning (G_STRLOC "gst_message_parse_error returned err == NULL"); @@ -888,7 +889,6 @@ farsight_rtp_stream_bus_watch_cb (GstBus *bus, GstMessage *message, g_error_free (err); } - farsight_rtp_stream_stop (stream); break; } default: @@ -3541,9 +3541,9 @@ farsight_rtp_stream_connection_timed_out (gpointer data) FARSIGHT_STREAM_STATE_CONNECTING) { g_warning ("Could not establish a connection"); + farsight_rtp_stream_stop (FARSIGHT_STREAM(self)); farsight_stream_signal_error (FARSIGHT_STREAM(self), FARSIGHT_STREAM_ERROR_TIMEOUT, "Could not establish a connection"); - farsight_rtp_stream_stop (FARSIGHT_STREAM(self)); } return FALSE; -- 1.5.6.5 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Farsight-devel mailing list Farsight-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/farsight-devel