[libav-commits] avplay: Don't call avio_set_interrupt_cb(NULL)

Martin Storsjö git at libav.org
Wed Jan 4 10:04:21 CET 2012


Module: libav
Branch: master
Commit: 0749720b6cdce68e4908dc59f1b4e1399852372b

Author:    Martin Storsjö <martin at martin.st>
Committer: Martin Storsjö <martin at martin.st>
Date:      Fri Dec 30 12:39:03 2011 +0200

avplay: Don't call avio_set_interrupt_cb(NULL)

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 at martin.st>

---

 avplay.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/avplay.c b/avplay.c
index 6dbf140..3bbb7ef 100644
--- 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;



More information about the libav-commits mailing list