Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
69a02cbe
Commit
69a02cbe
authored
Dec 12, 2003
by
Rocky Bernstein
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add CDDA and make MRLs regular. Routine Eject is same as that in gtk
and should be put in a more core location.
parent
d5f41845
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
13 deletions
+39
-13
modules/gui/ncurses/ncurses.c
modules/gui/ncurses/ncurses.c
+39
-13
No files found.
modules/gui/ncurses/ncurses.c
View file @
69a02cbe
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* ncurses.c : NCurses plugin for vlc
* ncurses.c : NCurses plugin for vlc
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001, 2002, 2003 VideoLAN
* Copyright (C) 2001, 2002, 2003 VideoLAN
* $Id: ncurses.c,v 1.
4 2003/03/30 18:14:38 gbazin
Exp $
* $Id: ncurses.c,v 1.
5 2003/12/12 03:06:51 rocky
Exp $
*
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Authors: Samuel Hocevar <sam@zoy.org>
*
*
...
@@ -36,6 +36,18 @@
...
@@ -36,6 +36,18 @@
#include <vlc/intf.h>
#include <vlc/intf.h>
#include <vlc/vout.h>
#include <vlc/vout.h>
#ifdef HAVE_CDDAX
#define CDDA_MRL "cddax://"
#else
#define CDDA_MRL "cdda://"
#endif
#ifdef HAVE_VCDX
#define VCD_MRL "vcdx://"
#else
#define VCD_MRL "vcdx://"
#endif
/*****************************************************************************
/*****************************************************************************
* Local prototypes.
* Local prototypes.
*****************************************************************************/
*****************************************************************************/
...
@@ -364,8 +376,8 @@ static void Eject ( intf_thread_t *p_intf )
...
@@ -364,8 +376,8 @@ static void Eject ( intf_thread_t *p_intf )
/*
/*
* Get the active input
* Get the active input
* Determine whether we can eject a media, ie it's a
VCD or DVD
* Determine whether we can eject a media, ie it's a
DVD, VCD or CD-DA
* If it's neither
a VCD nor a DVD
, then return
* If it's neither
of these
, then return
*/
*/
playlist_t
*
p_playlist
=
vlc_object_find
(
p_intf
,
VLC_OBJECT_PLAYLIST
,
playlist_t
*
p_playlist
=
vlc_object_find
(
p_intf
,
VLC_OBJECT_PLAYLIST
,
...
@@ -389,31 +401,45 @@ static void Eject ( intf_thread_t *p_intf )
...
@@ -389,31 +401,45 @@ static void Eject ( intf_thread_t *p_intf )
if
(
psz_name
)
if
(
psz_name
)
{
{
if
(
!
strncmp
(
psz_name
,
"dvd:"
,
4
)
)
if
(
!
strncmp
(
psz_name
,
"dvd://"
,
4
)
)
{
switch
(
psz_name
[
strlen
(
"dvd://"
)]
)
{
case
'\0'
:
case
'@'
:
psz_device
=
config_GetPsz
(
p_intf
,
"dvd"
);
break
;
default:
/* Omit the first MRL-selector characters */
psz_device
=
strdup
(
psz_name
+
strlen
(
"dvd://"
)
);
break
;
}
}
else
if
(
!
strncmp
(
psz_name
,
VCD_MRL
,
strlen
(
VCD_MRL
))
)
{
{
switch
(
psz_name
[
4
]
)
switch
(
psz_name
[
strlen
(
VCD_MRL
)
]
)
{
{
case
'\0'
:
case
'\0'
:
case
'@'
:
case
'@'
:
psz_device
=
config_GetPsz
(
p_intf
,
"dvd_device"
);
psz_device
=
config_GetPsz
(
p_intf
,
VCD_MRL
);
break
;
break
;
default:
default:
/* Omit the
first 4
characters */
/* Omit the
beginning MRL-selector
characters */
psz_device
=
strdup
(
psz_name
+
4
);
psz_device
=
strdup
(
psz_name
+
strlen
(
VCD_MRL
)
);
break
;
break
;
}
}
}
}
else
if
(
!
strncmp
(
psz_name
,
"vcd:"
,
4
)
)
else
if
(
!
strncmp
(
psz_name
,
CDDA_MRL
,
strlen
(
CDDA_MRL
)
)
)
{
{
switch
(
psz_name
[
4
]
)
switch
(
psz_name
[
strlen
(
CDDA_MRL
)
]
)
{
{
case
'\0'
:
case
'\0'
:
case
'@'
:
case
'@'
:
psz_device
=
config_GetPsz
(
p_intf
,
"
vcd_device
"
);
psz_device
=
config_GetPsz
(
p_intf
,
"
cd-audio
"
);
break
;
break
;
default:
default:
/* Omit the
first 4
characters */
/* Omit the
beginning MRL-selector
characters */
psz_device
=
strdup
(
psz_name
+
4
);
psz_device
=
strdup
(
psz_name
+
strlen
(
CDDA_MRL
)
);
break
;
break
;
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment