summaryrefslogtreecommitdiffstats
path: root/vobsub.c
diff options
context:
space:
mode:
authorulion <ulion@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-12-20 10:40:30 +0000
committerulion <ulion@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-12-20 10:40:30 +0000
commita4c16de07184adbe8e359a8f465f4b60dab1dd42 (patch)
treeb90f242efb93a7114f7935bab9ba7345f424dea6 /vobsub.c
parentb39d60f8b1d399820cdba7dca6a6960cfb5e9226 (diff)
downloadmpv-a4c16de07184adbe8e359a8f465f4b60dab1dd42.tar.bz2
mpv-a4c16de07184adbe8e359a8f465f4b60dab1dd42.tar.xz
Remove redundant code since unrarlib was removed.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25470 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'vobsub.c')
-rw-r--r--vobsub.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/vobsub.c b/vobsub.c
index 95d87ebb80..bab6e0f62f 100644
--- a/vobsub.c
+++ b/vobsub.c
@@ -58,7 +58,7 @@ rar_open(const char *const filename, const char *const mode)
if (stream->file == NULL) {
char *rar_filename;
const char *p;
- int rc = 0;
+ int rc;
/* Guess the RAR archive filename */
rar_filename = NULL;
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
* 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. */
- int i, num_files = -1, name_len;
+ int i, num_files, name_len;
ArchiveList_struct *list, *lp;
- if (num_files <= 0)
num_files = unrar_exec_list(rar_filename, &list);
if (num_files > 0) {
char *demanded_ext;