[vlc-devel] [PATCH] bluray: accept bluray://
Rémi Denis-Courmont
remi at remlab.net
Thu Aug 27 10:27:30 CEST 2015
Le 2015-08-27 10:51, Petri Hintukainen a écrit :
> From: Petri Hintukainen <phintuka at gmail.com>
>
> Use default DVD device
With drive letters all over the place on Windows, and the /dev/dvd
alias no longer exposed by Linux/udev, this is unreliable.
I would advise fixing the disc SD plugins (if they don't work for BD).
> ---
> modules/access/bluray.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/modules/access/bluray.c b/modules/access/bluray.c
> index 84bceeb..ce8e4a7 100644
> --- a/modules/access/bluray.c
> +++ b/modules/access/bluray.c
> @@ -390,6 +390,10 @@ static int blurayOpen(vlc_object_t *object)
> /* store current bd path */
> if (p_demux->psz_file)
> p_sys->psz_bd_path = strdup(p_demux->psz_file);
> + else {
> + /* no path provided (bluray://). use default DVD device. */
> + p_sys->psz_bd_path = var_InheritString(object, "dvd");
> + }
>
> /* If we're passed a block device, try to convert it to the
> mount point. */
> FindMountPoint(&p_sys->psz_bd_path);
--
Rémi Denis-Courmont
http://www.remlab.net/
More information about the vlc-devel
mailing list