rtsp-client: Fix iteration
authorEdward Hervey <bilboed@bilboed.com>
Thu, 19 Dec 2013 13:24:54 +0000 (14:24 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Thu, 19 Dec 2013 13:24:54 +0000 (14:24 +0100)
Wouldn't even enter the code block otherwise (i++ was used as the check
and not the postfix).

gst/rtsp-server/rtsp-client.c

index 0822727..d1826cf 100644 (file)
@@ -1752,7 +1752,7 @@ handle_describe_request (GstRTSPClient * client, GstRTSPContext * ctx)
 
   /* check what kind of format is accepted, we don't really do anything with it
    * and always return SDP for now. */
-  for (i = 0; i++;) {
+  for (i = 0;; i++) {
     gchar *accept;
 
     res =