Revision 49ce700a

View differences:

libavformat/asf.c
25 25
#include "common.h"
26 26
#include "asfcrypt.h"
27 27

  
28
extern void ff_mms_set_stream_selection(URLContext *h, AVFormatContext *format);
29

  
28 30
#undef NDEBUG
29 31
#include <assert.h>
30 32

  
......
106 108
}
107 109
#endif
108 110

  
111
static int is_mms(ByteIOContext *pb)
112
{
113
    return url_fileno(pb) && url_fileno(pb)->prot &&
114
         !strcmp(url_fileno(pb)->prot->name, "mmsh");
115
}
116

  
109 117
static void get_str16_nolen(ByteIOContext *pb, int len, char *buf, int buf_size)
110 118
{
111 119
    char* q = buf;
......
533 541
        }
534 542
    }
535 543

  
544
#ifdef CONFIG_MMSH_PROTOCOL
545
    /* Give info about ourselves to the mms protocol */
546
    if(is_mms(pb))
547
        ff_mms_set_stream_selection(url_fileno(pb), s);
548
#endif
549

  
536 550
    return 0;
537 551

  
538 552
 fail:

Also available in: Unified diff