]> granicus.if.org Git - rtmpdump/commitdiff
Ignore ctrl 31/32 in live streams
authorhyc <hyc@400ebc74-4327-4243-bc38-086b20814532>
Mon, 15 Feb 2010 21:49:01 +0000 (21:49 +0000)
committerhyc <hyc@400ebc74-4327-4243-bc38-086b20814532>
Mon, 15 Feb 2010 21:49:01 +0000 (21:49 +0000)
git-svn-id: svn://svn.mplayerhq.hu/rtmpdump/trunk@252 400ebc74-4327-4243-bc38-086b20814532

rtmp.c

diff --git a/rtmp.c b/rtmp.c
index 2de8d288acdcefd9f82526922dfc20cb8bdf124d..f3d3971468acc6a1b1a1673ef66539679157d493 100644 (file)
--- a/rtmp.c
+++ b/rtmp.c
@@ -1806,6 +1806,7 @@ HandleCtrl(RTMP * r, const RTMPPacket * packet)
        case 31:
          tmp = AMF_DecodeInt32(packet->m_body + 2);
          Log(LOGDEBUG, "%s, Stream BufferEmpty %d", __FUNCTION__, tmp);
+         if (r->Link.bLiveStream) break;
          if (!r->m_pausing)
            {
              r->m_pauseStamp = r->m_channelTimestamp[r->m_mediaChannel];