summaryrefslogtreecommitdiffstats
path: root/video/out/vo_rpi.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-04-25 11:28:49 +0200
committerwm4 <wm4@nowhere>2016-04-25 11:28:49 +0200
commit021cb2c3870b9d0b2f2e03416702fc561f160c2b (patch)
tree659ac3ff21f104e722539651b6900717e570f5a3 /video/out/vo_rpi.c
parente232f1a731a9089a13d88def6c1f2c1a069a6353 (diff)
downloadmpv-021cb2c3870b9d0b2f2e03416702fc561f160c2b.tar.bz2
mpv-021cb2c3870b9d0b2f2e03416702fc561f160c2b.tar.xz
mp_image: allow passing NULL to mp_image_new_custom_ref()
A minor simplification. Most callers don't need this, and there's no good reason why the caller should provide an "initializer" like this. (This function calls mp_image_new_dummy_ref(), which has no reason for an initializer either.)
Diffstat (limited to 'video/out/vo_rpi.c')
-rw-r--r--video/out/vo_rpi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/video/out/vo_rpi.c b/video/out/vo_rpi.c
index 9d782fc9c5..7ba3e8ba68 100644
--- a/video/out/vo_rpi.c
+++ b/video/out/vo_rpi.c
@@ -435,8 +435,7 @@ static void draw_frame(struct vo *vo, struct vo_frame *frame)
}
mmal_buffer_header_reset(buffer);
- struct mp_image *new_ref = mp_image_new_custom_ref(&(struct mp_image){0},
- buffer,
+ struct mp_image *new_ref = mp_image_new_custom_ref(NULL, buffer,
free_mmal_buffer);
if (!new_ref) {
mmal_buffer_header_release(buffer);