diff options
author | albeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-06-21 16:26:40 +0000 |
---|---|---|
committer | albeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-06-21 16:26:40 +0000 |
commit | d546cf983fc755431b9381e5613e0b5143ce283b (patch) | |
tree | b2dac663b5f01e37210ec68fc847ae75f29dec32 /libmpdemux | |
parent | 3028536080160f566c0609239c13b8eae078e6eb (diff) |
Add uninit to the dvd stream.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6480 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/open.c | 7 | ||||
-rw-r--r-- | libmpdemux/stream.c | 9 |
2 files changed, 15 insertions, 1 deletions
diff --git a/libmpdemux/open.c b/libmpdemux/open.c index fc5294f11f..5fa7a316b2 100644 --- a/libmpdemux/open.c +++ b/libmpdemux/open.c @@ -686,4 +686,11 @@ d->angle_seek=1; } +void dvd_close(dvd_priv_t *d) { + ifoClose(d->vts_file); + ifoClose(d->vmg_file); + DVDCloseFile(d->title); + DVDClose(d->dvd); +} + #endif diff --git a/libmpdemux/stream.c b/libmpdemux/stream.c index 86d2ffa3d1..5d96414a7c 100644 --- a/libmpdemux/stream.c +++ b/libmpdemux/stream.c @@ -278,10 +278,17 @@ void free_stream(stream_t *s){ waitpid(s->cache_pid,NULL,0); } if(s->fd>0) close(s->fd); + switch(s->type) { #ifdef HAVE_CDDA - if(s->type == STREAMTYPE_CDDA) + case STREAMTYPE_CDDA: close_cdda(s); + break; +#endif +#ifdef USE_DVDREAD + case STREAMTYPE_DVD: + dvd_close(s->priv); #endif + } if(s->priv) free(s->priv); free(s); } |