1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-25 08:12:17 +00:00

The patch fixes a nullpointer dereference and free of NULL in demux_close_xmms

when no matching plugin was found.
 Alexander.Gottwald@informatik.tu-chemnitz.de


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8612 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2002-12-28 14:06:48 +00:00
parent ac12fb17b6
commit 46f0f3351c

View File

@ -326,8 +326,11 @@ int demux_close_xmms(demuxer_t* demuxer) {
xmms_priv_t *priv=demuxer->priv;
xmms_playing=0;
xmms_audiopos=0; // xmp on exit waits until buffer is free enough
priv->ip->stop();
free(priv); xmms_priv=demuxer->priv=NULL;
if (priv != NULL) {
if (priv->ip != NULL)
priv->ip->stop();
free(priv); xmms_priv=demuxer->priv=NULL;
}
cleanup_plugins();
return 1;
}