Hi, XBMC is using dvdnav to get DVD playback. I'm working on extending chapters support, so I need to use the method dvdnav_describe_title_chapters. But when I try to free the *times array, I get an exception. Some google searchs, and my conclusion is that C compilers are different, so free() on xbmc side don't work with the calloc() of the dvdnav dll. I add a dvd_free(void* pdata) method on dvdnav (that just call free(pdata)) and now it's working. So, do you have any suggestions to make the dvdnav_describe_title_chapters usable, for every on who use it? Or maybe I made somethings wrong... thanks
On 4/18/14, Mickaël Guerin <queeroux@gmail.com> wrote:
Hi,
XBMC is using dvdnav to get DVD playback. I'm working on extending chapters support, so I need to use the method dvdnav_describe_title_chapters.
But when I try to free the *times array, I get an exception. Some google searchs, and my conclusion is that C compilers are different, so free() on xbmc side don't work with the calloc() of the dvdnav dll. I add a dvd_free(void* pdata) method on dvdnav (that just call free(pdata)) and now it's working.
What are you using to compile dvdnav dll? Anyway that sounds reasonable to me...
On 18 Apr, Mickaël Guerin wrote :
But when I try to free the *times array, I get an exception. Some google searchs, and my conclusion is that C compilers are different, so free() on xbmc side don't work with the calloc() of the dvdnav dll. I add a dvd_free(void* pdata) method on dvdnav (that just call free(pdata)) and now it's working.
We use that for years, and this works fine for us.
So, do you have any suggestions to make the dvdnav_describe_title_chapters usable, for every on who use it?
DVDnav and DVDread are hard because of the packing of structures. You should check that. With my kindest regards, -- Jean-Baptiste Kempf http://www.jbkempf.com/ - +33 672 704 734 Sent from my Electronic Device
Hi, Thanks for the response. I will look tomorrow for how dvdnav is compiled. (windows mingw I think) 2014-04-21 19:45 GMT+02:00 Jean-Baptiste Kempf <jb@videolan.org>:
On 18 Apr, Mickaël Guerin wrote :
But when I try to free the *times array, I get an exception. Some google searchs, and my conclusion is that C compilers are different, so free() on xbmc side don't work with the calloc() of the dvdnav dll. I add a dvd_free(void* pdata) method on dvdnav (that just call free(pdata)) and now it's working.
We use that for years, and this works fine for us.
So, do you have any suggestions to make the dvdnav_describe_title_chapters usable, for every on who use it?
DVDnav and DVDread are hard because of the packing of structures. You should check that.
With my kindest regards,
-- Jean-Baptiste Kempf http://www.jbkempf.com/ - +33 672 704 734 Sent from my Electronic Device _______________________________________________ DVDnav-discuss mailing list DVDnav-discuss@mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/dvdnav-discuss
participants (3)
-
Jean-Baptiste Kempf -
Mickaël Guerin -
Roger Pack