As READY_TO_PAUSED can no longer return async, the RECORD
command will be queued before the OPEN command fails
(for example in case the server could not be connected),
and record then waits for ever.
https://bugzilla.gnome.org/show_bug.cgi?id=793896
switch (cmd) {
case CMD_OPEN:
- gst_rtsp_client_sink_open (sink, TRUE);
+ if (gst_rtsp_client_sink_open (sink, TRUE) == GST_RTSP_ERROR)
+ gst_rtsp_client_sink_loop_send_cmd (sink, CMD_WAIT,
+ CMD_ALL & ~CMD_CLOSE);
break;
case CMD_RECORD:
gst_rtsp_client_sink_record (sink, TRUE);