mirror of
https://github.com/mpv-player/mpv
synced 2024-10-18 10:25:02 +02:00
Add uninit to the dvd stream.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6480 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
3028536080
commit
d546cf983f
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user