Commit 36180ab1 authored by Jon Lech Johansen's avatar Jon Lech Johansen

* ./plugins/macosx/intf_vlc_wrapper.m: don't try to eject unless there is

    a disc to eject.
parent dc0450f9
......@@ -2,7 +2,7 @@
* intf_vlc_wrapper.c: MacOS X plugin for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: intf_vlc_wrapper.m,v 1.4 2002/05/19 17:27:39 massiot Exp $
* $Id: intf_vlc_wrapper.m,v 1.5 2002/05/19 19:16:40 jlj Exp $
*
* Authors: Florian G. Pflug <fgp@phlo.org>
* Jon Lech Johansen <jon-vl@nanocrew.net>
......@@ -286,8 +286,11 @@ static Intf_VLCWrapper *o_intf = nil;
o_devices = GetEjectableMediaOfClass(kIOCDMediaClass);
}
psz_device = [[o_devices objectAtIndex:0] cString];
intf_Eject( psz_device );
if ( o_devices != nil && [o_devices count] )
{
psz_device = [[o_devices objectAtIndex:0] cString];
intf_Eject( psz_device );
}
}
/* playback info */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment