From 962df52fef1c13d3e481aeb4d20cf89bdad8cac3 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Mon, 17 Dec 2018 08:58:21 +0100 Subject: [PATCH] rtspconnection: Properly exit infinite loop In the unlikeliness the builder state is invalid, exit the top-level while(TRUE) loop. --- gst-libs/gst/rtsp/gstrtspconnection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/rtsp/gstrtspconnection.c b/gst-libs/gst/rtsp/gstrtspconnection.c index 7926f59..48e17d6 100644 --- a/gst-libs/gst/rtsp/gstrtspconnection.c +++ b/gst-libs/gst/rtsp/gstrtspconnection.c @@ -2158,7 +2158,7 @@ build_next (GstRTSPBuilder * builder, GstRTSPMessage * message, } default: res = GST_RTSP_ERROR; - break; + goto done; } } done: -- 2.7.4