rtsp: go back into the loop after doing pause

After we do a pause request, go back to loop mode so that we can listen
for server messages again.

See https://bugzilla.gnome.org/show_bug.cgi?id=702705
This commit is contained in:
Youness Alaoui 2013-06-21 10:32:30 +02:00 committed by Wim Taymans
parent 2cd6f53e24
commit 95906b8f1c

View file

@ -6809,7 +6809,8 @@ gst_rtspsrc_thread (GstRTSPSrc * src)
GST_OBJECT_LOCK (src); GST_OBJECT_LOCK (src);
cmd = src->pending_cmd; cmd = src->pending_cmd;
if (cmd == CMD_RECONNECT || cmd == CMD_PLAY || cmd == CMD_LOOP) if (cmd == CMD_RECONNECT || cmd == CMD_PLAY || cmd == CMD_PAUSE
|| cmd == CMD_LOOP)
src->pending_cmd = CMD_LOOP; src->pending_cmd = CMD_LOOP;
else else
src->pending_cmd = CMD_WAIT; src->pending_cmd = CMD_WAIT;