[rtmpdump] r93 - in trunk: rtmpdump.c streams.c

hyc subversion at mplayerhq.hu
Sun Dec 20 08:32:11 CET 2009


Author: hyc
Date: Sun Dec 20 08:32:10 2009
New Revision: 93

Log:
Minor cleanup

Modified:
   trunk/rtmpdump.c
   trunk/streams.c

Modified: trunk/rtmpdump.c
==============================================================================
--- trunk/rtmpdump.c	Fri Dec 18 19:11:46 2009	(r92)
+++ trunk/rtmpdump.c	Sun Dec 20 08:32:10 2009	(r93)
@@ -540,7 +540,8 @@ WriteStream(RTMP * rtmp, char **buf,	// 
       break;
     }
 
-  RTMPPacket_Free(&packet);
+  if (rtnGetNextMediaPacket)
+    RTMPPacket_Free(&packet);
   return ret;			// no more media packets
 }
 

Modified: trunk/streams.c
==============================================================================
--- trunk/streams.c	Fri Dec 18 19:11:46 2009	(r92)
+++ trunk/streams.c	Sun Dec 20 08:32:10 2009	(r93)
@@ -739,13 +739,13 @@ void processTCPrequest(STREAMING_SERVER 
 		    ((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);
 		}
 	    }


More information about the rtmpdump mailing list