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:
reimar
2009-11-10 23:20:05 +00:00
parent 36ec821836
commit 0d40667c8c
4 changed files with 79 additions and 73 deletions

View File

@@ -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);
}