summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d59b663)
raw | patch | inline | side by side (parent: d59b663)
author | Nikhil Devshatwar <nikhil.nd@ti.com> | |
Mon, 30 Jun 2014 11:14:00 +0000 (16:44 +0530) | ||
committer | Nikhil Devshatwar <nikhil.nd@ti.com> | |
Mon, 30 Jun 2014 11:18:44 +0000 (16:48 +0530) |
In utils library, post_*_buffer functions call the display specific
implementation and calls the maintain_playback_rate to force the FPS
The wait call should happen *after* the buffers are posted, not before
Correct this
This ensures that the buffer is not reused again immediately after
posting for display.
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
implementation and calls the maintain_playback_rate to force the FPS
The wait call should happen *after* the buffers are posted, not before
Correct this
This ensures that the buffer is not reused again immediately after
posting for display.
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
util/util.c | patch | blob | history |
diff --git a/util/util.c b/util/util.c
index f9487c701c65236280e0db6aca24d38bcda6129a..682fba6b3d31ed4f5b111389675d7a36802640e5 100644 (file)
--- a/util/util.c
+++ b/util/util.c
int
disp_post_buffer(struct display *disp, struct buffer *buf)
{
- maintain_playback_rate(&disp->rtctl);
- return disp->post_buffer(disp, buf);
+ int ret;
+
+ ret = disp->post_buffer(disp, buf);
+ if(!ret)
+ maintain_playback_rate(&disp->rtctl);
+ return ret;
}
/* flip to / post the specified video buffer */
disp_post_vid_buffer(struct display *disp, struct buffer *buf,
uint32_t x, uint32_t y, uint32_t w, uint32_t h)
{
- maintain_playback_rate(&disp->rtctl);
- return disp->post_vid_buffer(disp, buf, x, y, w, h);
+ int ret;
+
+ ret = disp->post_vid_buffer(disp, buf, x, y, w, h);
+ if(!ret)
+ maintain_playback_rate(&disp->rtctl);
+ return ret;
}
struct buffer *