Commit 0210469b authored by Diego Biurrun's avatar Diego Biurrun

Initialize i_pos from the global dvdcss struct in dvdcss_open().

This is a more suitable place than libc_open().
parent 76a8dee9
......@@ -455,8 +455,6 @@ static int libc_open ( dvdcss_t dvdcss, const char *psz_device )
return -1;
}
dvdcss->i_pos = 0;
return 0;
}
......
......@@ -473,6 +473,7 @@ LIBDVDCSS_EXPORT dvdcss_t dvdcss_open ( const char *psz_target )
}
/* Initialize structure with default values. */
dvdcss->i_pos = 0;
dvdcss->p_titles = NULL;
dvdcss->psz_device = strdup( psz_target );
dvdcss->psz_error = "no error";
......
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