Skip to content
Snippets Groups Projects
Commit f7bd459b authored by Petri Hintukainen's avatar Petri Hintukainen Committed by Jean-Baptiste Kempf
Browse files

bluray: Accept bluray://


Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent f03cb672
No related branches found
No related tags found
No related merge requests found
......@@ -553,10 +553,8 @@ static int blurayOpen(vlc_object_t *object)
if (probeStream(p_demux) != VLC_SUCCESS) {
return VLC_EGENERIC;
}
} else {
if (!forced || !p_demux->psz_file) {
return VLC_EGENERIC;
}
} else if (!forced) {
return VLC_EGENERIC;
}
/* */
......@@ -593,8 +591,14 @@ static int blurayOpen(vlc_object_t *object)
p_sys->bluray = NULL;
}
} else {
/* store current bd path */
p_sys->psz_bd_path = strdup(p_demux->psz_file);
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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment