changeset 6203:24d0c5dec55a libavformat

Use new librtmp APIs instead of grubbing around in RTMP struct
author hyc
date Thu, 01 Jul 2010 10:59:44 +0000
parents 4fa881b244fa
children fbc809c24e5b
files librtmp.c
diffstat 1 files changed, 3 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/librtmp.c	Thu Jul 01 00:09:08 2010 +0000
+++ b/librtmp.c	Thu Jul 01 10:59:44 2010 +0000
@@ -94,7 +94,7 @@
     }
 
     if (flags & URL_WRONLY)
-        r->Link.protocol |= RTMP_FEATURE_WRITE;
+        RTMP_EnableWrite(r);
 
     if (!RTMP_Connect(r, NULL) || !RTMP_ConnectStream(r, 0)) {
         rc = -1;
@@ -127,10 +127,7 @@
 {
     RTMP *r = s->priv_data;
 
-    if (pause)
-        r->m_pauseStamp =
-            r->m_channelTimestamp[r->m_mediaChannel];
-    if (!RTMP_SendPause(r, pause, r->m_pauseStamp))
+    if (!RTMP_Pause(r, pause))
         return -1;
     return 0;
 }
@@ -157,7 +154,7 @@
 {
     RTMP *r = s->priv_data;
 
-    return r->m_sb.sb_socket;
+    return RTMP_Socket(r);
 }
 
 URLProtocol rtmp_protocol = {