From cd3716b9aae7e141e7b4faf9783131809f40991f Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sun, 11 Dec 2011 10:38:28 +0100 Subject: Replace all uses of av_close_input_file() with avformat_close_input(). --- avplay.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'avplay.c') diff --git a/avplay.c b/avplay.c index fd9774ef32..f90899c57b 100644 --- a/avplay.c +++ b/avplay.c @@ -2593,8 +2593,7 @@ static int decode_thread(void *arg) if (is->subtitle_stream >= 0) stream_component_close(is, is->subtitle_stream); if (is->ic) { - av_close_input_file(is->ic); - is->ic = NULL; /* safety */ + avformat_close_input(&is->ic); } avio_set_interrupt_cb(NULL); -- cgit v1.2.3