rtspconnection: Properly exit infinite loop

In the unlikeliness the builder state is invalid, exit the
top-level while(TRUE) loop.
This commit is contained in:
Edward Hervey 2018-12-17 08:58:21 +01:00 committed by Edward Hervey
parent d42294114f
commit 962df52fef

View file

@ -2158,7 +2158,7 @@ build_next (GstRTSPBuilder * builder, GstRTSPMessage * message,
} }
default: default:
res = GST_RTSP_ERROR; res = GST_RTSP_ERROR;
break; goto done;
} }
} }
done: done: