]> granicus.if.org Git - rtmpdump/commitdiff
Minor cleanup
authorhyc <hyc@400ebc74-4327-4243-bc38-086b20814532>
Sun, 20 Dec 2009 07:32:10 +0000 (07:32 +0000)
committerhyc <hyc@400ebc74-4327-4243-bc38-086b20814532>
Sun, 20 Dec 2009 07:32:10 +0000 (07:32 +0000)
git-svn-id: svn://svn.mplayerhq.hu/rtmpdump/trunk@93 400ebc74-4327-4243-bc38-086b20814532

rtmpdump.c
streams.c

index 481961283c73e479c90d14e23d5fdc3ef7e62a83..96912e2c1da853801c9865974b7f793983827e82 100644 (file)
@@ -540,7 +540,8 @@ WriteStream(RTMP * rtmp, char **buf,        // target pointer, maybe preallocated
       break;
     }
 
-  RTMPPacket_Free(&packet);
+  if (rtnGetNextMediaPacket)
+    RTMPPacket_Free(&packet);
   return ret;                  // no more media packets
 }
 
index c6ee066a28d95fd47b506fca2171950e33fbc4b3..5c611a7c1219720187354e60848ad53f77ac0cce 100644 (file)
--- a/streams.c
+++ b/streams.c
@@ -739,13 +739,13 @@ void processTCPrequest(STREAMING_SERVER * server, // server socket and state (ou
                    ((double) (dSeek + req.nTimeStamp)) / (duration *
                                                           1000.0) * 100.0;
                  percent = ((double) (int) (percent * 10.0)) / 10.0;
-                 LogPrintf("\r%.3f KB / %.2f sec (%.1f%%)",
+                 LogStatus("\r%.3f KB / %.2f sec (%.1f%%)",
                            (double) size / 1024.0,
                            (double) (req.nTimeStamp) / 1000.0, percent);
                }
              else
                {
-                 LogPrintf("\r%.3f KB / %.2f sec", (double) size / 1024.0,
+                 LogStatus("\r%.3f KB / %.2f sec", (double) size / 1024.0,
                            (double) (req.nTimeStamp) / 1000.0);
                }
            }