[MPlayer-dev-eng] [PATCH] of asf_mmst_streaming to only receive the resquested streams

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Mon Jan 17 21:32:50 CET 2005


Hi,
> +extern int audio_id;
> +extern int video_id;
> +
>  int asf_mmst_streaming_start(stream_t *stream)
>  {
>    char                 str[1024];
> @@ -610,6 +613,9 @@
>      data [ (i-1) * 6 + 3 ] = 0xFF;
>      data [ (i-1) * 6 + 4 ] = stream_ids[i];
>      data [ (i-1) * 6 + 5 ] = 0x00;
> +    if(video_id>0 && audio_id>0 && 
> +       stream_ids[i]!=video_id && stream_ids[i]!=audio_id)
> +      data [ (i-1) * 6 + 6 ] = 0x02;

>From my experience with mms-over-http I can say that this will probably
cause many servers to treat it as invalid and always stream the lowest-bitrate
streams.
Not sending anything for the unwanted streams worked much better...

Greetings,
Reimar Döffinger




More information about the MPlayer-dev-eng mailing list