dvdnav: prevent reallocation of fake highlight buffer

Since subsizes were never updated, the bitmap buffer was always
reallocated whenever mp_nav_get_highlight() called.
This commit is contained in:
xylosper authored and wm4 committed 2014-03-30 17:52:43 +02:00
1 parent cf8ff2fd87
commit 8d5775a8d2
1 file changed
+2
+2
View File
@@ -237,6 +237,8 @@ void mp_nav_get_highlight(struct osd_state *osd, struct mp_osd_res res,
talloc_free(sub->bitmap);
sub->bitmap = talloc_array(sub, uint32_t, sizes[0] * sizes[1]);
memset(sub->bitmap, 0x80, talloc_get_size(sub->bitmap));
nav->subsize[0] = sizes[0];
nav->subsize[1] = sizes[1];
}
sub->x = nav->highlight[0];