From ef38efc2d7f40838752875e0fe6b35712bb0a586 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 25 Jul 2012 12:50:01 +0200 Subject: [PATCH] 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. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=680551 --- gst/rtsp/gstrtspsrc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index b7c3a50..9eda544 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -6452,7 +6452,10 @@ gst_rtspsrc_thread (GstRTSPSrc * src) GST_OBJECT_LOCK (src); cmd = src->pending_cmd; - src->pending_cmd = CMD_WAIT; + if (cmd == CMD_PLAY || cmd == CMD_LOOP) + src->pending_cmd = CMD_LOOP; + else + src->pending_cmd = CMD_WAIT; GST_DEBUG_OBJECT (src, "got command %d", cmd); /* we got the message command, so ensure communication is possible again */ -- 2.7.4