rtspsrc: fix cmd comparison

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=690476
This commit is contained in:
Wim Taymans 2012-12-20 17:12:30 +01:00
parent 75616fac9a
commit 8cfec6a88d

View file

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