OSDN Git Service

avplay: Don't call avio_set_interrupt_cb(NULL)
authorMartin Storsjö <martin@martin.st>
Fri, 30 Dec 2011 10:39:03 +0000 (12:39 +0200)
committerMartin Storsjö <martin@martin.st>
Wed, 4 Jan 2012 09:03:45 +0000 (11:03 +0200)
Since we don't use avio_set_interrupt_cb for interrupt callbacks,
we don't need to call it to reset the interrupt cb either.

This avoids a warning about use of deprecated functions.

Signed-off-by: Martin Storsjö <martin@martin.st>
avplay.c

index 6dbf140..3bbb7ef 100644 (file)
--- a/avplay.c
+++ b/avplay.c
@@ -2599,7 +2599,6 @@ static int decode_thread(void *arg)
     if (is->ic) {
         avformat_close_input(&is->ic);
     }
-    avio_set_interrupt_cb(NULL);
 
     if (ret != 0) {
         SDL_Event event;