[rtmpdump] r216 - in trunk: rtmpdump.c rtmpsrv.c streams.c
hyc
subversion at mplayerhq.hu
Sat Jan 9 03:09:51 CET 2010
Author: hyc
Date: Sat Jan 9 03:09:50 2010
New Revision: 216
Log:
Also support NULL for --conn parameters
Modified:
trunk/rtmpdump.c
trunk/rtmpsrv.c
trunk/streams.c
Modified: trunk/rtmpdump.c
==============================================================================
--- trunk/rtmpdump.c Sat Jan 9 01:47:10 2010 (r215)
+++ trunk/rtmpdump.c Sat Jan 9 03:09:50 2010 (r216)
@@ -1074,6 +1074,9 @@ parseAMF(AMFObject *obj, const char *arg
prop.p_type = AMF_NUMBER;
prop.p_vu.p_number = strtod(p, NULL);
break;
+ case 'Z':
+ prop.p_type = AMF_NULL;
+ break;
case 'O':
i = atoi(p);
if (i)
@@ -1320,7 +1323,7 @@ main(int argc, char **argv)
LogPrintf
(" B:boolean(0|1), S:string, N:number, O:object-flag(0|1),\n");
LogPrintf
- (" NB:name:boolean, NS:name:string, NN:name:number\n");
+ (" Z:(null), NB:name:boolean, NS:name:string, NN:name:number\n");
LogPrintf
("--flashVer|-f string Flash version string (default: \"%s\")\n",
DEFAULT_FLASH_VER);
Modified: trunk/rtmpsrv.c
==============================================================================
--- trunk/rtmpsrv.c Sat Jan 9 01:47:10 2010 (r215)
+++ trunk/rtmpsrv.c Sat Jan 9 03:09:50 2010 (r216)
@@ -245,7 +245,7 @@ static void
dumpAMF(AMFObject *obj)
{
int i;
- const char opt[] = "NBSO";
+ const char opt[] = "NBSO Z";
for (i=0; i < obj->o_num; i++)
{
@@ -272,6 +272,8 @@ dumpAMF(AMFObject *obj)
dumpAMF(&p->p_vu.p_object);
LogPrintf(" -C O:0");
break;
+ case AMF_NULL:
+ break;
default:
LogPrintf("<type %d>", p->p_type);
}
Modified: trunk/streams.c
==============================================================================
--- trunk/streams.c Sat Jan 9 01:47:10 2010 (r215)
+++ trunk/streams.c Sat Jan 9 03:09:50 2010 (r216)
@@ -131,6 +131,9 @@ parseAMF(AMFObject *obj, const char *arg
prop.p_type = AMF_NUMBER;
prop.p_vu.p_number = strtod(p, NULL);
break;
+ case 'Z':
+ prop.p_type = AMF_NULL;
+ break;
case 'O':
i = atoi(p);
if (i)
@@ -1251,7 +1254,7 @@ main(int argc, char **argv)
LogPrintf
(" B:boolean(0|1), S:string, N:number, O:object-flag(0|1),\n");
LogPrintf
- (" NB:name:boolean, NS:name:string, NN:name:number\n");
+ (" Z:(null), NB:name:boolean, NS:name:string, NN:name:number\n");
LogPrintf
("--flashVer|-f string Flash version string (default: \"%s\")\n",
DEFAULT_FLASH_VER);
More information about the rtmpdump
mailing list