summaryrefslogtreecommitdiffstats
path: root/stream/asf_mmst_streaming.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-02-08 17:03:24 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-02-08 17:03:24 +0000
commitd6e492471189bfb87e1d3144310bd00817d4fc60 (patch)
tree4855b7844c86fac589c327d1145e187dd9cbe825 /stream/asf_mmst_streaming.c
parent767fea6f4f5c9a9fa4ac1741af803bddf4595ef5 (diff)
downloadmpv-d6e492471189bfb87e1d3144310bd00817d4fc60.tar.bz2
mpv-d6e492471189bfb87e1d3144310bd00817d4fc60.tar.xz
Quick hack mostly for documentation purposes to make -aid work with mms://
Sample: mms://212.191.227.121/308gwY8TZqvHUpsq4dbZnsijbiCi9j3KsguBrfbm2FiDMlBadHuF0g0%2b1%2bUKG84F2Sl6DVTxHNtNuMxa%2f55j0imtiKswx8ev7cEYxvNuAlSBioF3nYmzTAM71xKiTHjM6%2fqejrQgFg7srIdntNoIw%2fyw%3d%3d/1 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22177 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/asf_mmst_streaming.c')
-rw-r--r--stream/asf_mmst_streaming.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/stream/asf_mmst_streaming.c b/stream/asf_mmst_streaming.c
index d2a265d405..31536a9dae 100644
--- a/stream/asf_mmst_streaming.c
+++ b/stream/asf_mmst_streaming.c
@@ -64,6 +64,9 @@
#include "network.h"
#include "tcp.h"
+extern int audio_id;
+extern int video_id;
+
#define BUF_SIZE 102400
#define HDR_BUF_SIZE 8192
#define MAX_STREAMS 20
@@ -645,6 +648,12 @@ int asf_mmst_streaming_start(stream_t *stream)
memset (data, 0, 40);
+ if (audio_id > 0) {
+ data[2] = 0xFF;
+ data[3] = 0xFF;
+ data[4] = audio_id;
+ send_command(s, 0x33, num_stream_ids, 0xFFFF | audio_id << 16, 8, data);
+ } else {
for (i=1; i<num_stream_ids; i++) {
data [ (i-1) * 6 + 2 ] = 0xFF;
data [ (i-1) * 6 + 3 ] = 0xFF;
@@ -653,6 +662,7 @@ int asf_mmst_streaming_start(stream_t *stream)
}
send_command (s, 0x33, num_stream_ids, 0xFFFF | stream_ids[0] << 16, (num_stream_ids-1)*6+2 , data);
+ }
get_answer (s);