changeset 22159:6d8f2be532d4

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
author reimar
date Thu, 08 Feb 2007 17:03:24 +0000
parents a6a93224cf4d
children 6e4623c4f8f6
files stream/asf_mmst_streaming.c
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/stream/asf_mmst_streaming.c	Thu Feb 08 15:42:53 2007 +0000
+++ b/stream/asf_mmst_streaming.c	Thu Feb 08 17:03:24 2007 +0000
@@ -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);