mirror of
https://github.com/mpv-player/mpv
synced 2024-12-24 15:52:25 +00:00
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
This commit is contained in:
parent
767fea6f4f
commit
d6e4924711
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user