update to libnut API, don't free the streams

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20941 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
ods15 2006-11-15 11:26:05 +00:00
parent fdb5454df2
commit e7c9a5bbe4
1 changed files with 2 additions and 3 deletions

View File

@ -275,9 +275,8 @@ static int demux_control_nut(demuxer_t * demuxer, int cmd, void * arg) {
}
static void demux_close_nut(demuxer_t *demuxer) {
nut_context_t * nut = ((nut_priv_t*)demuxer->priv)->nut;
nut_demuxer_uninit(nut);
free(((nut_priv_t*)demuxer->priv)->s);
nut_priv_t * priv = demuxer->priv;
nut_demuxer_uninit(priv->nut);
free(demuxer->priv);
demuxer->priv = NULL;
}