From: <suc...@us...> - 2006-08-02 21:33:14
|
Revision: 178 Author: sucknblow Date: 2006-08-02 14:33:07 -0700 (Wed, 02 Aug 2006) ViewCVS: http://svn.sourceforge.net/pmplib/?rev=178&view=rev Log Message: ----------- Freeing alloc'd data before exit quietens the debugger. Modified Paths: -------------- trunk/pmplib/frontend/easypmp/cui/main.c Modified: trunk/pmplib/frontend/easypmp/cui/main.c =================================================================== --- trunk/pmplib/frontend/easypmp/cui/main.c 2006-08-02 17:59:32 UTC (rev 177) +++ trunk/pmplib/frontend/easypmp/cui/main.c 2006-08-02 21:33:07 UTC (rev 178) @@ -315,7 +315,8 @@ ret = pmphelp_create(pmphelp, &pmp, opt.path_to_root, opt.model); if (!pmp) { fprintf(fpe, "Failed to find a player (%d)\n", ret); - return 1; + ret = 1; + goto exit_main; } // Show player information. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ny...@us...> - 2007-02-10 18:03:25
|
Revision: 330 http://svn.sourceforge.net/pmplib/?rev=330&view=rev Author: nyaochi Date: 2007-02-10 10:03:21 -0800 (Sat, 10 Feb 2007) Log Message: ----------- Show error codes in "0x%X" format. Modified Paths: -------------- trunk/pmplib/frontend/easypmp/cui/main.c Modified: trunk/pmplib/frontend/easypmp/cui/main.c =================================================================== --- trunk/pmplib/frontend/easypmp/cui/main.c 2007-02-10 17:55:24 UTC (rev 329) +++ trunk/pmplib/frontend/easypmp/cui/main.c 2007-02-10 18:03:21 UTC (rev 330) @@ -265,7 +265,7 @@ // Initialize PMPlib library. if (res = pmplib_init(&pmplib)) { - fprintf(fpe, "ERROR: Failed to initialize PMPlib library (%d)\n", res); + fprintf(fpe, "ERROR: Failed to initialize PMPlib library (0x%X)\n", res); ret = 1; goto exit_main; } @@ -306,7 +306,7 @@ // Create a PMP instance. res = pmplib_create(pmplib, &pmp, opt.path_to_root, opt.model); if (!pmp) { - fprintf(fpe, "ERROR: Failed to find a player (%X)\n", res); + fprintf(fpe, "ERROR: Failed to find a player (0x%X)\n", res); ret = 1; goto exit_main; } @@ -340,7 +340,7 @@ } res = pmp->open(pmp, openflag); if (res) { - fprintf(fpe, "ERROR: Failed to open the player (%X)\n", res); + fprintf(fpe, "ERROR: Failed to open the player (0x%X)\n", res); ret = 1; goto exit_main; } @@ -406,7 +406,7 @@ } res = pmp->close(pmp); if (res) { - fprintf(fpe, "ERROR: Failed to close the player (%X)\n", res); + fprintf(fpe, "ERROR: Failed to close the player (0x%X)\n", res); ret = 1; goto exit_main; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ny...@us...> - 2007-02-11 17:45:15
|
Revision: 340 http://svn.sourceforge.net/pmplib/?rev=340&view=rev Author: nyaochi Date: 2007-02-11 09:45:15 -0800 (Sun, 11 Feb 2007) Log Message: ----------- Convert the argument for -P option into its absolute path. Modified Paths: -------------- trunk/pmplib/frontend/easypmp/cui/main.c Modified: trunk/pmplib/frontend/easypmp/cui/main.c =================================================================== --- trunk/pmplib/frontend/easypmp/cui/main.c 2007-02-11 17:33:05 UTC (rev 339) +++ trunk/pmplib/frontend/easypmp/cui/main.c 2007-02-11 17:45:15 UTC (rev 340) @@ -278,6 +278,22 @@ goto exit_main; } + // Convert the source directory for playlist conversion described in relative path. + if (opt.path_to_playlist_source) { + if (filepath_is_relative(opt.path_to_playlist_source)) { + char pwd[MAX_PATH+1]; + ucs2char_t pwd_ucs2[MAX_PATH+1]; + ucs2char_t tmp[MAX_PATH+1]; + + getcwd(pwd, MAX_PATH); + mbstoucs2(pwd_ucs2, MAX_PATH, pwd, strlen(pwd)+1); + + filepath_relative_to_absolute(tmp, pwd_ucs2, opt.path_to_playlist_source); + ucs2free(opt.path_to_playlist_source); + opt.path_to_playlist_source = ucs2dup(tmp); + } + } + // Generate the path_to_root (path to the root directory of a device). if (!opt.path_to_root[0]) { // If path_to_root is not set, use the current directory. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ny...@us...> - 2007-02-17 15:35:46
|
Revision: 371 http://svn.sourceforge.net/pmplib/?rev=371&view=rev Author: nyaochi Date: 2007-02-17 07:35:46 -0800 (Sat, 17 Feb 2007) Log Message: ----------- Do not specify PMPOF_MUSIC_DB_READ flag for database dump. Modified Paths: -------------- trunk/pmplib/frontend/easypmp/cui/main.c Modified: trunk/pmplib/frontend/easypmp/cui/main.c =================================================================== --- trunk/pmplib/frontend/easypmp/cui/main.c 2007-02-17 14:52:17 UTC (rev 370) +++ trunk/pmplib/frontend/easypmp/cui/main.c 2007-02-17 15:35:46 UTC (rev 371) @@ -343,9 +343,6 @@ openflag |= PMPOF_MUSIC_DB_READ; } } - if (opt.verb & MODE_DATABASE_REPR) { - openflag |= PMPOF_MUSIC_DB_READ; - } if (opt.verb & MODE_PLAYLIST) { openflag |= PMPOF_MUSIC_PL_WRITE; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |