summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <edward@centricular.com>2018-12-17 08:58:21 +0100
committerTim-Philipp Müller <tim@centricular.com>2019-05-01 17:27:04 +0100
commitbe1d1caeab8b055d41720784ae6990fe5c044f13 (patch)
treebfcdec8c5d121cdb7562be20f4584a0008ec2d8f
parent061546d94ccc2644ba536d5f00b34249ead69325 (diff)
downloadgstreamer-plugins-base-be1d1caeab8b055d41720784ae6990fe5c044f13.tar.gz
rtspconnection: Properly exit infinite loop
In the unlikeliness the builder state is invalid, exit the top-level while(TRUE) loop.
-rw-r--r--gst-libs/gst/rtsp/gstrtspconnection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/rtsp/gstrtspconnection.c b/gst-libs/gst/rtsp/gstrtspconnection.c
index c3a3a95c2..4631a26fa 100644
--- a/gst-libs/gst/rtsp/gstrtspconnection.c
+++ b/gst-libs/gst/rtsp/gstrtspconnection.c
@@ -2157,7 +2157,7 @@ build_next (GstRTSPBuilder * builder, GstRTSPMessage * message,
}
default:
res = GST_RTSP_ERROR;
- break;
+ goto done;
}
}
done: