libcdio.sym: add mmc_close_tray
cdda-player.c, mmc-tool.c: remove possibility of uninitialized return code variables
This commit is contained in:
@@ -177,6 +177,7 @@ debug_cdio_mmc_read_sub_state
|
||||
discmode2str
|
||||
mmc_audio_read_subchannel
|
||||
mmc_audio_state2str
|
||||
mmc_close_tray
|
||||
mmc_eject_media
|
||||
mmc_feature2str
|
||||
mmc_feature_profile2str
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
$Id: cdda-player.c,v 1.47 2006/04/07 02:32:03 rocky Exp $
|
||||
$Id: cdda-player.c,v 1.48 2006/04/14 22:17:08 rocky Exp $
|
||||
|
||||
Copyright (C) 2005, 2006 Rocky Bernstein <rocky@panix.com>
|
||||
|
||||
@@ -352,7 +352,7 @@ set_volume_level(CdIo_t *p_cdio, uint8_t i_level)
|
||||
audio_volume.level[i] = i_new_level;
|
||||
}
|
||||
|
||||
cdio_audio_set_volume(p_cdio, &audio_volume);
|
||||
rc = cdio_audio_set_volume(p_cdio, &audio_volume);
|
||||
if ( DRIVER_OP_SUCCESS != rc ) {
|
||||
/* If we can't do a get volume, audio_volume.level is used as
|
||||
a second-best guess. But if this set failed restore it to
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
$Id: mmc-tool.c,v 1.8 2006/04/12 14:55:27 rocky Exp $
|
||||
$Id: mmc-tool.c,v 1.9 2006/04/14 22:17:08 rocky Exp $
|
||||
|
||||
Copyright (C) 2006 Rocky Bernstein <rocky@cpan.org>
|
||||
|
||||
@@ -422,7 +422,7 @@ main(int argc, char *argv[])
|
||||
{
|
||||
CdIo_t *p_cdio;
|
||||
|
||||
driver_return_code_t rc;
|
||||
driver_return_code_t rc = DRIVER_OP_SUCCESS;
|
||||
unsigned int i;
|
||||
|
||||
init(argv[0]);
|
||||
|
||||
Reference in New Issue
Block a user