changeset 5412:95bc775d22ff libavformat

Send connect() and createStream() in RTMP system channel, not video channel. Patch by Sergiy (com gmail . piratfm @ mail =)
author kostya
date Thu, 03 Dec 2009 15:59:51 +0000
parents 1f27e6bd85c3
children 25a21f96f863
files rtmpproto.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/rtmpproto.c	Thu Dec 03 15:47:00 2009 +0000
+++ b/rtmpproto.c	Thu Dec 03 15:59:51 2009 +0000
@@ -100,7 +100,7 @@
     uint8_t ver[32], *p;
     char tcurl[512];
 
-    ff_rtmp_packet_create(&pkt, RTMP_VIDEO_CHANNEL, RTMP_PT_INVOKE, 0, 4096);
+    ff_rtmp_packet_create(&pkt, RTMP_SYSTEM_CHANNEL, RTMP_PT_INVOKE, 0, 4096);
     p = pkt.data;
 
     snprintf(tcurl, sizeof(tcurl), "%s://%s:%d/%s", proto, host, port, rt->app);
@@ -143,7 +143,7 @@
     uint8_t *p;
 
     av_log(LOG_CONTEXT, AV_LOG_DEBUG, "Creating stream...\n");
-    ff_rtmp_packet_create(&pkt, RTMP_VIDEO_CHANNEL, RTMP_PT_INVOKE, 0, 25);
+    ff_rtmp_packet_create(&pkt, RTMP_SYSTEM_CHANNEL, RTMP_PT_INVOKE, 0, 25);
 
     p = pkt.data;
     ff_amf_write_string(&p, "createStream");