Commit f7bd459b authored by Petri Hintukainen's avatar Petri Hintukainen Committed by Jean-Baptiste Kempf

bluray: Accept bluray://

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent f03cb672
......@@ -553,11 +553,9 @@ static int blurayOpen(vlc_object_t *object)
if (probeStream(p_demux) != VLC_SUCCESS) {
return VLC_EGENERIC;
}
} else {
if (!forced || !p_demux->psz_file) {
} else if (!forced) {
return VLC_EGENERIC;
}
}
/* */
p_demux->p_sys = p_sys = calloc(1, sizeof(*p_sys));
......@@ -593,8 +591,14 @@ static int blurayOpen(vlc_object_t *object)
p_sys->bluray = NULL;
}
} else {
if (!p_demux->psz_file) {
/* no path provided (bluray://). use default DVD device. */
p_sys->psz_bd_path = var_InheritString(object, "dvd");
} else {
/* store current bd path */
p_sys->psz_bd_path = strdup(p_demux->psz_file);
}
/* If we're passed a block device, try to convert it to the mount point. */
FindMountPoint(&p_sys->psz_bd_path);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment