freebsd-ports/multimedia/mplayer/files/patch-libao2_ao__arts.c
Thomas Zander 6ea8dbba59 - Update to recent mplayer snapshot (2015-08-22)
- Unbundle ffmpeg and use the distfile from multimedia/ffmpeg
  (currently on version 2.7.2)
- Fix edge case assertion in av_free on 9.x/i386 upon stream close
  with mencoder (no change in behaviour)
- Include LICENSE_FILE
- Pet portlint
2015-08-23 16:41:23 +00:00

15 lines
347 B
C

--- libao2/ao_arts.c.orig 2010-02-20 21:02:49 UTC
+++ libao2/ao_arts.c
@@ -116,8 +116,10 @@ static int init(int rate_hz, int channel
static void uninit(int immed)
{
- arts_close_stream(stream);
- arts_free();
+ if (stream != NULL) {
+ arts_close_stream(stream);
+ stream = NULL;
+ }
}
static int play(void* data,int len,int flags)