[libbluray-devel] Add an explicit BLURAY_TITLE** cast to _fill_disc_info to fix a compiling error with Visual Studio

tourettes git at videolan.org
Thu Mar 27 20:48:50 CET 2014


libbluray | branch: master | tourettes <tourettes at team-mediaportal.com> | Thu Mar 27 20:44:21 2014 +0200| [40dcac37a5a7331b54869e3c04df6359a55f21ef] | committer: hpi1

Add an explicit BLURAY_TITLE** cast to _fill_disc_info to fix a compiling error with Visual Studio

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=40dcac37a5a7331b54869e3c04df6359a55f21ef
---

 src/libbluray/bluray.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libbluray/bluray.c b/src/libbluray/bluray.c
index c364369..f2f9a3d 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -953,7 +953,7 @@ static void _fill_disc_info(BLURAY *bd)
         memcpy(bd->disc_info.provider_data, index->app_info.user_data, sizeof(bd->disc_info.provider_data));
 
         /* allocate array for title info */
-        BLURAY_TITLE **titles = array_alloc(index->num_titles + 2, sizeof(BLURAY_TITLE));
+        BLURAY_TITLE **titles = (BLURAY_TITLE**)array_alloc(index->num_titles + 2, sizeof(BLURAY_TITLE));
         if (!titles) {
             BD_DEBUG(DBG_BLURAY | DBG_CRIT, "Can't allocate memory\n");
             return;



More information about the libbluray-devel mailing list