path: root/stream/stream_cdda.c
diff options
authorwm4 <wm4@nowhere>2013-09-22 03:04:57 +0200
committerwm4 <wm4@nowhere>2013-09-22 03:31:25 +0200
commitcc7f8ee6204ffbeac195623a6be59ab9bcc32622 (patch)
tree5a7026d8d36ffe1168c1d1ed70d27f98ad912732 /stream/stream_cdda.c
parentb0f7a26f1a6dc061db0a60908842371e7a010db2 (diff)
mplayer: attempt to make playback resume work with DVD/BD
The problem with DVD/BD and playback resume is that most often, the filename is just "dvd://", while the actual path to the DVD disk image is given with --dvd-device. But playback resume works on the filename only. Add a pretty bad hack that includes the path to the disk image if the filename starts with dvd://, and the same for BD respectively. (It's a bad hack, but I want to go to bed, so here we go. I might revert or improve it later, depending on user feedback.) We have to cleanup the global variable mess around the dvd_device. Ideally, this should go into MPOpts, but it isn't yet. Make the code paths in mplayer.c take MPOpts anyway.
Diffstat (limited to 'stream/stream_cdda.c')
1 files changed, 0 insertions, 2 deletions
diff --git a/stream/stream_cdda.c b/stream/stream_cdda.c
index 4c114ca1ac..9c7504a83d 100644
--- a/stream/stream_cdda.c
+++ b/stream/stream_cdda.c
@@ -50,8 +50,6 @@
#include "mpvcore/mp_msg.h"
-extern char *cdrom_device;
typedef struct {
cdrom_drive_t *cd;
cdrom_paranoia_t *cdp;