[libdvdnav-devel] [PATCH] libdvdnav: searching.c - remove unused function parameters
Steve Dibb
beandog at gentoo.org
Sat Apr 26 21:33:28 CEST 2014
Fixes compiler warnings:
src/searching.c:1098:61: warning: unused parameter 'this'
[-Wunused-parameter]
static int32_t dvdnav_tmap_get_entries_for_sector(dvdnav_t *this,
^
src/searching.c:1099:26: warning: unused parameter 'state'
[-Wunused-parameter]
dvd_state_t *state, dvdnav_jump_args_t *args,
^
src/searching.c:1207:62: warning: unused parameter 'this'
[-Wunused-parameter]
static int32_t dvdnav_find_vobu_by_cell_boundaries(dvdnav_t *this,
^
Patch:
diff --git a/src/searching.c b/src/searching.c
index 054a9c5..6353054 100644
--- a/src/searching.c
+++ b/src/searching.c
@@ -1095,10 +1095,10 @@ static int32_t
dvdnav_tmap_calc_time_for_tmap_entry(dvdnav_jump_args_t *args,
}
/* Find the tmap entries on either side of a given sector */
-static int32_t dvdnav_tmap_get_entries_for_sector(dvdnav_t *this,
- dvd_state_t *state, dvdnav_jump_args_t *args,
- dvdnav_cell_data_t *cell_data, uint32_t find_sector,
- dvdnav_pos_data_t *lo, dvdnav_pos_data_t *hi) {
+static int32_t dvdnav_tmap_get_entries_for_sector(
+ dvdnav_jump_args_t *args, dvdnav_cell_data_t *cell_data,
+ uint32_t find_sector, dvdnav_pos_data_t *lo,
+ dvdnav_pos_data_t *hi) {
int32_t result = 0;
result = dvdnav_tmap_search(args->tmap, args->tmap_len, find_sector,
@@ -1158,7 +1158,7 @@ static int32_t dvdnav_find_vobu_by_tmap(dvdnav_t
*this, dvd_state_t *state,
/* get tmap entries on either side of cell_bgn */
cell_bgn_lo = &(dvdnav_pos_data_t){0};
cell_bgn_hi = &(dvdnav_pos_data_t){0};
- result = dvdnav_tmap_get_entries_for_sector(this, state, args, cell_data,
+ result = dvdnav_tmap_get_entries_for_sector(args, cell_data,
cell_data->bgn->sector, cell_bgn_lo, cell_bgn_hi);
if (!result) return 0;
@@ -1204,7 +1204,7 @@ static int32_t dvdnav_find_vobu_by_tmap(dvdnav_t
*this, dvd_state_t *state,
}
/* Find the nearest vobu by using the cell boundaries */
-static int32_t dvdnav_find_vobu_by_cell_boundaries(dvdnav_t *this,
+static int32_t dvdnav_find_vobu_by_cell_boundaries(
dvdnav_jump_args_t *args, dvdnav_cell_data_t *cell_data,
dvdnav_pos_data_t *jump) {
uint64_t jump_offset = 0;
@@ -1279,7 +1279,7 @@ dvdnav_status_t
dvdnav_jump_to_sector_by_time(dvdnav_t *this,
/* find sector */
result = dvdnav_find_vobu_by_tmap(this, state, args, cell_data, jump);
if (!result) {/* bad tmap; interpolate over cell */
- result = dvdnav_find_vobu_by_cell_boundaries(this, args, cell_data,
jump);
+ result = dvdnav_find_vobu_by_cell_boundaries(args, cell_data, jump);
if (!result) {
goto exit;
}
More information about the libdvdnav-devel
mailing list