Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
66d7e1da
Commit
66d7e1da
authored
Apr 04, 2002
by
Jon Lech Johansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* ./src/interface/intf_eject.c: Fixed a MacOS X bug.
parent
439f10a6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
src/interface/intf_eject.c
src/interface/intf_eject.c
+7
-3
No files found.
src/interface/intf_eject.c
View file @
66d7e1da
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* intf_eject.c: CD/DVD-ROM ejection handling functions
* intf_eject.c: CD/DVD-ROM ejection handling functions
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* Copyright (C) 2001, 2002 VideoLAN
* $Id: intf_eject.c,v 1.
6 2002/04/03 23:24:42 massiot
Exp $
* $Id: intf_eject.c,v 1.
7 2002/04/04 00:23:36 jlj
Exp $
*
*
* Author: Julien Blache <jb@technologeek.org> for the Linux part
* Author: Julien Blache <jb@technologeek.org> for the Linux part
* with code taken from the Linux "eject" command
* with code taken from the Linux "eject" command
...
@@ -107,14 +107,18 @@ int intf_Eject( const char *psz_device )
...
@@ -107,14 +107,18 @@ int intf_Eject( const char *psz_device )
if
(
(
p_eject
=
popen
(
sz_cmd
,
"r"
)
)
!=
NULL
)
if
(
(
p_eject
=
popen
(
sz_cmd
,
"r"
)
)
!=
NULL
)
{
{
char
psz_result
[
0x200
];
char
psz_result
[
0x200
];
i_ret
=
fread
(
psz_result
,
1
,
sizeof
(
psz_result
),
p_eject
);
i_ret
=
fread
(
psz_result
,
1
,
sizeof
(
psz_result
)
-
1
,
p_eject
);
pclose
(
p_eject
);
if
(
i_ret
==
0
&&
ferror
(
p_eject
)
!=
0
)
if
(
i_ret
==
0
&&
ferror
(
p_eject
)
!=
0
)
{
{
pclose
(
p_eject
);
return
1
;
return
1
;
}
}
pclose
(
p_eject
);
psz_result
[
i_ret
]
=
0
;
if
(
strstr
(
psz_result
,
"Disk Ejected"
)
!=
NULL
)
if
(
strstr
(
psz_result
,
"Disk Ejected"
)
!=
NULL
)
{
{
return
0
;
return
0
;
...
...
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