Remove redundant code since unrarlib was removed.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25470 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
ulion 2007-12-20 10:40:30 +00:00
parent b39d60f8b1
commit a4c16de071
1 changed files with 2 additions and 3 deletions

View File

@ -58,7 +58,7 @@ rar_open(const char *const filename, const char *const mode)
if (stream->file == NULL) { if (stream->file == NULL) {
char *rar_filename; char *rar_filename;
const char *p; const char *p;
int rc = 0; int rc;
/* Guess the RAR archive filename */ /* Guess the RAR archive filename */
rar_filename = NULL; rar_filename = NULL;
p = strrchr(filename, '.'); p = strrchr(filename, '.');
@ -92,9 +92,8 @@ rar_open(const char *const filename, const char *const mode)
/* There is no matching filename in the archive. However, sometimes /* There is no matching filename in the archive. However, sometimes
* the files we are looking for have been given arbitrary names in the archive. * the files we are looking for have been given arbitrary names in the archive.
* Let's look for a file with an exact match in the extension only. */ * Let's look for a file with an exact match in the extension only. */
int i, num_files = -1, name_len; int i, num_files, name_len;
ArchiveList_struct *list, *lp; ArchiveList_struct *list, *lp;
if (num_files <= 0)
num_files = unrar_exec_list(rar_filename, &list); num_files = unrar_exec_list(rar_filename, &list);
if (num_files > 0) { if (num_files > 0) {
char *demanded_ext; char *demanded_ext;