summaryrefslogtreecommitdiffstats
path: root/stream/stream_dvdnav.c
diff options
context:
space:
mode:
Diffstat (limited to 'stream/stream_dvdnav.c')
-rw-r--r--stream/stream_dvdnav.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stream/stream_dvdnav.c b/stream/stream_dvdnav.c
index 887b112d70..508acd4d04 100644
--- a/stream/stream_dvdnav.c
+++ b/stream/stream_dvdnav.c
@@ -605,9 +605,9 @@ static int control(stream_t *stream, int cmd, void *arg)
case STREAM_CTRL_GET_DVD_VOLUME_ID: {
const char *volume = NULL;
if (dvdnav_get_title_string(dvdnav, &volume) != DVDNAV_STATUS_OK)
- return STREAM_ERROR;
+ break;
if (!volume || !volume[0])
- return STREAM_ERROR;
+ break;
*(char**)arg = talloc_strdup(NULL, volume);
return STREAM_OK;
}