mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
Move dvd_speed and dvd_set_speed to dvd_common and implement -dvd-speed
support for dvdnav. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29890 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
@@ -87,6 +87,8 @@ static dvdnav_priv_t * new_dvdnav_stream(char * filename) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
dvd_set_speed(priv->filename, dvd_speed);
|
||||
|
||||
if(dvdnav_open(&(priv->dvdnav),priv->filename)!=DVDNAV_STATUS_OK)
|
||||
{
|
||||
free(priv->filename);
|
||||
@@ -291,6 +293,7 @@ static void stream_dvdnav_close(stream_t *s) {
|
||||
dvdnav_priv_t *priv = s->priv;
|
||||
dvdnav_close(priv->dvdnav);
|
||||
priv->dvdnav = NULL;
|
||||
dvd_set_speed(priv->filename, -1);
|
||||
free(priv);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user