summaryrefslogtreecommitdiffstats
path: root/stream/stream_dvd.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-02-23 18:15:32 +0100
committerwm4 <wm4@nowhere>2014-02-23 18:16:33 +0100
commit40486fd8bd5b0ca0e5fe67a21563bc07a0a1c838 (patch)
tree1f8b8742f8e8dedf2f3cbb4b6dfd8943a6ef35a1 /stream/stream_dvd.c
parentf30149e80ed97490b1c96a16496ba16508fde4c9 (diff)
downloadmpv-40486fd8bd5b0ca0e5fe67a21563bc07a0a1c838.tar.bz2
mpv-40486fd8bd5b0ca0e5fe67a21563bc07a0a1c838.tar.xz
dvd: treat missing volume ID as "unsupported", not error
This is probably better and more consistent with the rest of the code, although it doesn't change any currently existing behavior in this case.
Diffstat (limited to 'stream/stream_dvd.c')
-rw-r--r--stream/stream_dvd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stream/stream_dvd.c b/stream/stream_dvd.c
index 3dc7e76cc3..43cab53b30 100644
--- a/stream/stream_dvd.c
+++ b/stream/stream_dvd.c
@@ -732,9 +732,9 @@ static int control(stream_t *stream,int cmd,void* arg)
char buffer[128];
if (DVDUDFVolumeInfo(d->dvd, buffer, sizeof(buffer), NULL, 0) < 0 &&
DVDISOVolumeInfo(d->dvd, buffer, sizeof(buffer), NULL, 0) < 0)
- return STREAM_ERROR;
+ break;
if (!buffer[0])
- return STREAM_ERROR;
+ break;
*(char**)arg = talloc_strdup(NULL, buffer);
return STREAM_OK;
}