[MPlayer-cvslog] r22177 - trunk/stream/asf_mmst_streaming.c
reimar
subversion at mplayerhq.hu
Thu Feb 8 18:03:24 CET 2007
Author: reimar
Date: Thu Feb 8 18:03:24 2007
New Revision: 22177
Modified:
trunk/stream/asf_mmst_streaming.c
Log:
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
Modified: trunk/stream/asf_mmst_streaming.c
==============================================================================
--- trunk/stream/asf_mmst_streaming.c (original)
+++ trunk/stream/asf_mmst_streaming.c Thu Feb 8 18:03:24 2007
@@ -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 @@
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 @@
}
send_command (s, 0x33, num_stream_ids, 0xFFFF | stream_ids[0] << 16, (num_stream_ids-1)*6+2 , data);
+ }
get_answer (s);
More information about the MPlayer-cvslog
mailing list