rtspconnection: Properly exit infinite loop
authorEdward Hervey <edward@centricular.com>
Mon, 17 Dec 2018 07:58:21 +0000 (08:58 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Mon, 17 Dec 2018 11:21:01 +0000 (12:21 +0100)
In the unlikeliness the builder state is invalid, exit the
top-level while(TRUE) loop.

gst-libs/gst/rtsp/gstrtspconnection.c

index 7926f59..48e17d6 100644 (file)
@@ -2158,7 +2158,7 @@ build_next (GstRTSPBuilder * builder, GstRTSPMessage * message,
       }
       default:
         res = GST_RTSP_ERROR;
-        break;
+        goto done;
     }
   }
 done: