mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
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.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user