mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 15:04:46 +00:00
rtspconnection: Remove read child source when POST is disconnected
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=724720
This commit is contained in:
parent
e8d58b432e
commit
ebe3530f51
1 changed files with 13 additions and 0 deletions
|
@ -3025,6 +3025,19 @@ gst_rtsp_source_dispatch_read (GPollableInputStream * stream,
|
||||||
if (res == GST_RTSP_EINTR)
|
if (res == GST_RTSP_EINTR)
|
||||||
goto done;
|
goto done;
|
||||||
else if (G_UNLIKELY (res == GST_RTSP_EEOF)) {
|
else if (G_UNLIKELY (res == GST_RTSP_EEOF)) {
|
||||||
|
if (watch->readsrc) {
|
||||||
|
g_source_remove_child_source ((GSource *) watch, watch->readsrc);
|
||||||
|
g_source_unref (watch->readsrc);
|
||||||
|
watch->readsrc = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (conn->stream1) {
|
||||||
|
g_object_unref (conn->stream1);
|
||||||
|
conn->stream1 = NULL;
|
||||||
|
conn->socket1 = NULL;
|
||||||
|
conn->input_stream = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
/* When we are in tunnelled mode, the read socket can be closed and we
|
/* When we are in tunnelled mode, the read socket can be closed and we
|
||||||
* should be prepared for a new POST method to reopen it */
|
* should be prepared for a new POST method to reopen it */
|
||||||
if (conn->tstate == TUNNEL_STATE_COMPLETE) {
|
if (conn->tstate == TUNNEL_STATE_COMPLETE) {
|
||||||
|
|
Loading…
Reference in a new issue