]> granicus.if.org Git - rtmpdump/commitdiff
app is a required parameter
authorhyc <hyc@400ebc74-4327-4243-bc38-086b20814532>
Sat, 13 Mar 2010 20:49:51 +0000 (20:49 +0000)
committerhyc <hyc@400ebc74-4327-4243-bc38-086b20814532>
Sat, 13 Mar 2010 20:49:51 +0000 (20:49 +0000)
git-svn-id: svn://svn.mplayerhq.hu/rtmpdump/trunk@343 400ebc74-4327-4243-bc38-086b20814532

librtmp/rtmp.c
rtmpdump.c
rtmpgw.c

index 6cbad8ed6f3535bfcb0a9b8d1b9b1d4fbdc7b89c..12bc36d51f41647b975dfe8f67e86e3739d477a3 100644 (file)
@@ -2901,7 +2901,7 @@ Read_1_Packet(RTMP *r, char *buf, int buflen)
        }
 
       if (r->m_read.flags & RTMP_READ_SEEKING)
-        {
+       {
          ret = RTMP_READ_IGNORE;
          break;
        }
index b3ce51d8be422e969564f7ac91696d533d499bc8..726e85f5e0416a3234d5991b17e9a10fe3f5c47a 100644 (file)
@@ -1129,13 +1129,19 @@ main(int argc, char **argv)
   if (hostname == 0)
     {
       Log(LOGERROR,
-         "You must specify a hostname (--host) or url (-r \"rtmp://host[:port]/playpath\") containing a hostname");
+         "You must specify a hostname (--host) or url (-r \"rtmp://host[:port]/app/playpath\") containing a hostname");
       return RD_FAILED;
     }
   if (playpath.av_len == 0)
     {
       Log(LOGERROR,
-         "You must specify a playpath (--playpath) or url (-r \"rtmp://host[:port]/playpath\") containing a playpath");
+         "You must specify a playpath (--playpath) or url (-r \"rtmp://host[:port]/app/playpath\") containing a playpath");
+      return RD_FAILED;
+    }
+  if (app.av_len == 0)
+    {
+      Log(LOGERROR,
+         "You must specify an app (--app) or url (-r \"rtmp://host[:port]/app/playpath\") containing an app");
       return RD_FAILED;
     }
 
@@ -1207,7 +1213,7 @@ main(int argc, char **argv)
     }
 #endif
 
-  if (tcUrl.av_len == 0 && app.av_len != 0)
+  if (tcUrl.av_len == 0)
     {
       char str[512] = { 0 };
 
index 411bd5c37a52c7130f82f5437a79f309b2d92cb6..dfbecc59c699646b083e5304ce8ddca9210e7d64 100644 (file)
--- a/rtmpgw.c
+++ b/rtmpgw.c
@@ -464,14 +464,20 @@ void processTCPrequest(STREAMING_SERVER * server, // server socket and state (ou
   if (req.hostname == 0)
     {
       Log(LOGERROR,
-         "You must specify a hostname (--host) or url (-r \"rtmp://host[:port]/playpath\") containing a hostname");
+         "You must specify a hostname (--host) or url (-r \"rtmp://host[:port]/app/playpath\") containing a hostname");
       goto filenotfound;
     }
   if (req.playpath.av_len == 0)
     {
       Log(LOGERROR,
-         "You must specify a playpath (--playpath) or url (-r \"rtmp://host[:port]/playpath\") containing a playpath");
-      goto filenotfound;;
+         "You must specify a playpath (--playpath) or url (-r \"rtmp://host[:port]/app/playpath\") containing a playpath");
+      goto filenotfound;
+    }
+  if (req.app.av_len == 0)
+    {
+      Log(LOGERROR,
+         "You must specify an app (--app) or url (-r \"rtmp://host[:port]/app/playpath\") containing an app");
+      goto filenotfound;
     }
 
   if (req.protocol == RTMP_PROTOCOL_UNDEFINED)