Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-release-src > by-pkgid > c615fca0060ac42a9b7224aa00987c59 > files > 2

cmus-2.5.0-10.mga5.src.rpm

Index: cmus-v2.5.0/ffmpeg.c
===================================================================
--- cmus-v2.5.0/ffmpeg.c
+++ cmus-v2.5.0/ffmpeg.c	2014-11-14 17:39:09.950181629 +0100
@@ -254,7 +254,7 @@
 
 	if (err < 0) {
 		/* Clean up.  cc is never opened at this point.  (See above assumption.) */
-		av_close_input_file(ic);
+		avformat_close_input(&ic);
 		return err;
 	}
 
@@ -266,7 +266,7 @@
 	priv->input = ffmpeg_input_create();
 	if (priv->input == NULL) {
 		avcodec_close(cc);
-		av_close_input_file(ic);
+		avformat_close_input(&ic);
 		free(priv);
 		return -IP_ERROR_INTERNAL;
 	}
@@ -301,7 +301,7 @@
 	struct ffmpeg_private *priv = ip_data->private;
 
 	avcodec_close(priv->codec_context);
-	av_close_input_file(priv->input_context);
+	avformat_close_input(&priv->input_context);
 	ffmpeg_input_free(priv->input);
 	ffmpeg_output_free(priv->output);
 	free(priv);