]> granicus.if.org Git - rtmpdump/commitdiff
Don't advance to next file if playlist has only one file
authorhyc <hyc@400ebc74-4327-4243-bc38-086b20814532>
Tue, 16 Feb 2010 05:34:14 +0000 (05:34 +0000)
committerhyc <hyc@400ebc74-4327-4243-bc38-086b20814532>
Tue, 16 Feb 2010 05:34:14 +0000 (05:34 +0000)
git-svn-id: svn://svn.mplayerhq.hu/rtmpdump/trunk@254 400ebc74-4327-4243-bc38-086b20814532

rtmpsuck.c

index 5d4acb4ca6f5d799a04954e352fc1c09c2e21907..165be405406d37a09fc097f0025f7a0e78be2c72 100644 (file)
@@ -406,7 +406,10 @@ ServeInvoke(STREAMING_SERVER *server, int which, RTMPPacket *pack, const char *b
        {
           /* set up the next stream */
           if (server->f_cur)
-            server->f_cur = server->f_cur->f_next;
+                   {
+                     if (server->f_cur->f_next)
+                server->f_cur = server->f_cur->f_next;
+                       }
           else
             {
               for (server->f_cur = server->f_head; server->f_cur &&