mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-16 22:40:53 +08:00
various: remove redundant return
void return type functions don't need a final return statement.
This commit is contained in:
@@ -275,7 +275,6 @@ static void init_physical_format(struct ao *ao)
|
||||
|
||||
coreaudio_error:
|
||||
talloc_free(tmp);
|
||||
return;
|
||||
}
|
||||
|
||||
static bool init_audiounit(struct ao *ao, AudioStreamBasicDescription asbd, AudioChannelLayout *layout, size_t layout_size)
|
||||
|
||||
@@ -643,7 +643,6 @@ exit_label:
|
||||
SAFE_RELEASE(state->pSessionControl);
|
||||
MP_WARN(state, "Error setting audio session name: %s\n",
|
||||
mp_HRESULT_to_str(hr));
|
||||
return;
|
||||
}
|
||||
|
||||
static void init_volume_control(struct wasapi_state *state)
|
||||
|
||||
@@ -654,7 +654,6 @@ static void hwdownload_process(struct mp_filter *f)
|
||||
|
||||
passthrough:
|
||||
mp_pin_in_write(f->ppins[1], frame);
|
||||
return;
|
||||
}
|
||||
|
||||
static const struct mp_filter_info hwdownload_filter = {
|
||||
|
||||
@@ -311,7 +311,6 @@ static void precreate_graph(struct lavfi *c, bool first_init)
|
||||
error:
|
||||
free_graph(c);
|
||||
c->failed = true;
|
||||
return;
|
||||
}
|
||||
|
||||
// Ensure to send EOF to each input pad, so the graph can be drained properly.
|
||||
|
||||
@@ -125,7 +125,6 @@ static void sws_process(struct mp_filter *f)
|
||||
error:
|
||||
mp_frame_unref(&frame);
|
||||
mp_filter_internal_mark_failed(f);
|
||||
return;
|
||||
}
|
||||
|
||||
static const struct mp_filter_info sws_filter = {
|
||||
|
||||
@@ -79,7 +79,6 @@ static void remove_seat(struct clipboard_wayland_seat *seat)
|
||||
ext_data_control_source_v1_destroy(seat->primary_selection_source);
|
||||
wl_seat_destroy(seat->seat);
|
||||
talloc_free(seat);
|
||||
return;
|
||||
}
|
||||
|
||||
static void destroy_offer(struct clipboard_wayland_data_offer *o)
|
||||
|
||||
@@ -130,8 +130,6 @@ static void copy_ass(struct sd_filter *sd, char **rpp, struct buffer *buf)
|
||||
}
|
||||
}
|
||||
*rpp = rp;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
static bool skip_enclosed(struct sd_filter *sd, char **rpp, struct buffer *buf,
|
||||
@@ -219,8 +217,6 @@ static void skip_speaker_label(struct sd_filter *sd, char **rpp, struct buffer *
|
||||
return;
|
||||
}
|
||||
*rpp = rp;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
// Check for text enclosed in symbols, like (SOUND)
|
||||
|
||||
@@ -616,7 +616,6 @@ static void deallocate_xvimage(struct vo *vo, int foo)
|
||||
ctx->Shminfo[foo] = (XShmSegmentInfo){0};
|
||||
|
||||
XSync(vo->x11->display, False);
|
||||
return;
|
||||
}
|
||||
|
||||
static inline void put_xvimage(struct vo *vo, XvImage *xvi)
|
||||
|
||||
@@ -2627,7 +2627,6 @@ static void remove_output(struct vo_wayland_output *out)
|
||||
talloc_free(out->make);
|
||||
talloc_free(out->model);
|
||||
talloc_free(out);
|
||||
return;
|
||||
}
|
||||
|
||||
static void remove_seat(struct vo_wayland_seat *seat)
|
||||
@@ -2667,7 +2666,6 @@ static void remove_seat(struct vo_wayland_seat *seat)
|
||||
|
||||
wl_seat_destroy(seat->seat);
|
||||
talloc_free(seat);
|
||||
return;
|
||||
}
|
||||
|
||||
static void seat_create_data_source(struct vo_wayland_seat *seat)
|
||||
|
||||
Reference in New Issue
Block a user