Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
735bea83
Commit
735bea83
authored
May 14, 2002
by
Christophe Massiot
Browse files
Do not eject when we're reading from the disc...
parent
869d2111
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/macosx/intf_vlc_wrapper.m
View file @
735bea83
...
...
@@ -2,7 +2,7 @@
* intf_vlc_wrapper.c: MacOS X plugin for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: intf_vlc_wrapper.m,v 1.
1
2002/05/1
2
20:
56:3
4 massiot Exp $
* $Id: intf_vlc_wrapper.m,v 1.
2
2002/05/1
4
20:
13:0
4 massiot Exp $
*
* Authors: Florian G. Pflug <fgp@phlo.org>
* Jon Lech Johansen <jon-vl@nanocrew.net>
...
...
@@ -256,6 +256,15 @@ static Intf_VLCWrapper *o_intf = nil;
NSArray
*
o_devices
=
GetEjectableMediaOfClass
(
kIODVDMediaClass
);
const
char
*
psz_device
;
if
(
p_input_bank
->
pp_input
[
0
]
!=
NULL
&&
(
p_input_bank
->
pp_input
[
0
]
->
stream
.
i_method
==
INPUT_METHOD_VCD
||
p_input_bank
->
pp_input
[
0
]
->
stream
.
i_method
==
INPUT_METHOD_DVD
||
p_input_bank
->
pp_input
[
0
]
->
stream
.
i_method
==
INPUT_METHOD_DISC
)
)
{
intf_ErrMsg
(
"error: cannot eject the disc while you're reading from it"
);
return
;
}
if
(
o_devices
==
nil
)
{
o_devices
=
GetEjectableMediaOfClass
(
kIOCDMediaClass
);
...
...
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