[rtmpdump] r171 - trunk/rtmpsuck.c
hyc
subversion at mplayerhq.hu
Sun Jan 3 00:25:46 CET 2010
Author: hyc
Date: Sun Jan 3 00:25:45 2010
New Revision: 171
Log:
Zap colons in playpath
Modified:
trunk/rtmpsuck.c
Modified: trunk/rtmpsuck.c
==============================================================================
--- trunk/rtmpsuck.c Sun Jan 3 00:10:00 2010 (r170)
+++ trunk/rtmpsuck.c Sun Jan 3 00:25:45 2010 (r171)
@@ -313,15 +313,16 @@ ServeInvoke(STREAMING_SERVER *server, RT
memcpy(file, server->rc.Link.playpath.av_val, server->rc.Link.playpath.av_len);
file[server->rc.Link.playpath.av_len] = '\0';
for (p=file; *p; p++)
- if (*p == '/')
+ if (*p == '/' || *p == ':')
*p = '_';
else if (*p == '?')
{
*p = '\0';
break;
}
- LogPrintf("Playpath: %.*s, writing to %s\n", server->rc.Link.playpath.av_len,
- server->rc.Link.playpath.av_val, file);
+ LogPrintf("Playpath: %.*s\nSaving as: %s\n",
+ server->rc.Link.playpath.av_len, server->rc.Link.playpath.av_val,
+ file);
server->out = fopen(file, "wb");
if (!server->out)
ret = 1;
More information about the rtmpdump
mailing list