summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2010-12-13 18:50:22 +0200
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-12-13 18:50:22 +0200
commit387326e54b7dbc4d1eac96c5e114b9ff6f33f608 (patch)
treee624893869af0a8a26016ceb9fbe8b70f6a73d63
parentcc2d748b73c0147c11089d63e4ff9836070a09a8 (diff)
downloadmpv-387326e54b7dbc4d1eac96c5e114b9ff6f33f608.tar.bz2
mpv-387326e54b7dbc4d1eac96c5e114b9ff6f33f608.tar.xz
vo_vdpau: remove wrong mp_image usage_count change (no visible effect)
The wrong variable was used as a function argument, and as a result the code modified the usage_count field of non-refcounted mp_image types. This error did not have any effect on visible behavior as no code cares about the field value in the affected case.
-rw-r--r--libvo/vo_vdpau.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libvo/vo_vdpau.c b/libvo/vo_vdpau.c
index 2793e99c31..482a401239 100644
--- a/libvo/vo_vdpau.c
+++ b/libvo/vo_vdpau.c
@@ -1491,7 +1491,7 @@ static void draw_image(struct vo *vo, mp_image_t *mpi, double pts)
else
vc->top_field_first = 1;
- add_new_video_surface(vo, rndr->surface, mpi, pts);
+ add_new_video_surface(vo, rndr->surface, reserved_mpi, pts);
return;
}