summaryrefslogtreecommitdiff
path: root/gst-libs/gst/rtsp/gstrtspconnection.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst-libs/gst/rtsp/gstrtspconnection.c')
-rw-r--r--gst-libs/gst/rtsp/gstrtspconnection.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst-libs/gst/rtsp/gstrtspconnection.c b/gst-libs/gst/rtsp/gstrtspconnection.c
index 3e5add4ce..309421c9d 100644
--- a/gst-libs/gst/rtsp/gstrtspconnection.c
+++ b/gst-libs/gst/rtsp/gstrtspconnection.c
@@ -2161,11 +2161,13 @@ build_next (GstRTSPBuilder * builder, GstRTSPMessage * message,
}
}
done:
+ conn->may_cancel = TRUE;
return res;
/* ERRORS */
invalid_body_len:
{
+ conn->may_cancel = TRUE;
GST_DEBUG ("could not allocate body");
return GST_RTSP_ERROR;
}