Revision 026e1757 libavformat/avio.c

View differences:

libavformat/avio.c
49 49
static int default_interrupt_cb(void);
50 50

  
51 51
URLProtocol *first_protocol = NULL;
52
URLInterruptCB *url_interrupt_cb = default_interrupt_cb;
52
int (*url_interrupt_cb)(void) = default_interrupt_cb;
53 53

  
54 54
URLProtocol *av_protocol_next(URLProtocol *p)
55 55
{
......
389 389
    return 0;
390 390
}
391 391

  
392
void avio_set_interrupt_cb(URLInterruptCB *interrupt_cb)
392
void avio_set_interrupt_cb(int (*interrupt_cb)(void))
393 393
{
394 394
    if (!interrupt_cb)
395 395
        interrupt_cb = default_interrupt_cb;

Also available in: Unified diff