summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Nauwelaerts <mnauw@users.sourceforge.net>2016-10-25 15:24:20 +0200
committerMark Nauwelaerts <mnauw@users.sourceforge.net>2016-10-26 12:30:39 +0200
commit735924236e24402acc3572e402c501de4af65fe3 (patch)
tree9ed76041bdac1fb6d037e422902f1a582f0b40da
parent5067d7254f16f9426c6b5dcd5a7c292d13752ba8 (diff)
rtspsrc: reset connection info to non-flushing when closing
This solves a hanging mainloop in following scenario: * connect to source * network/server drops * pipeline set to NULL (and connection to flushing as part) * pipeline set to PAUSED/PLAYING (connection to non-flushing, but not recorded) * [connecting still not possible] * pipeline set to NULL => mainloop hangs (since no actual flushing is done)
-rw-r--r--gst/rtsp/gstrtspsrc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c
index 189adc2ad..7e942d090 100644
--- a/gst/rtsp/gstrtspsrc.c
+++ b/gst/rtsp/gstrtspsrc.c
@@ -4178,6 +4178,7 @@ gst_rtsp_conninfo_close (GstRTSPSrc * src, GstRTSPConnInfo * info,
GST_DEBUG_OBJECT (src, "freeing connection...");
gst_rtsp_connection_free (info->connection);
info->connection = NULL;
+ info->flushing = FALSE;
}
GST_RTSP_STATE_UNLOCK (src);
return GST_RTSP_OK;