Commit ef38efc2 authored by Wim Taymans's avatar Wim Taymans

rtsp: go and stay in the loop function on PLAY

When we have a PLAY request, go into the LOOP function next. When we are
looping, keep on looping until we are told otherwise.
This fixed rtsp and TCP connections.

parent 943b56ff
......@@ -6452,7 +6452,10 @@ gst_rtspsrc_thread (GstRTSPSrc * src)
cmd = src->pending_cmd;
src->pending_cmd = CMD_WAIT;
if (cmd == CMD_PLAY || cmd == CMD_LOOP)
src->pending_cmd = CMD_LOOP;
src->pending_cmd = CMD_WAIT;
GST_DEBUG_OBJECT (src, "got command %d", cmd);
/* we got the message command, so ensure communication is possible again */
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment