# HG changeset patch # User rathann # Date 1355089177 0 # Node ID d7720a050e6752fcfb57f530240c1ee0c378afea # Parent 8c87207b73ac1b70b5adeb13e3058886d6f88cf2 Restore C++ compatibility by renaming the parameter to 'self' like in the other functions. Revision 1208 ("Add dvdnav_program_play & dvdnav_current_title_program") added dvdnav_program_play function to dvdnav.h. However, unlike the other API functions, its first parameter is named 'this' instead of 'self'. 'this' is a C++ keyword and prevents compilation of C++ projects using libdvdnav. Patch by Anssi Hannula \anssi.hannula%iki.fi/ diff -r 8c87207b73ac -r d7720a050e67 dvdnav/dvdnav.h --- a/dvdnav/dvdnav.h Sun Dec 09 21:22:15 2012 +0000 +++ b/dvdnav/dvdnav.h Sun Dec 09 21:39:37 2012 +0000 @@ -281,7 +281,7 @@ /* * Plays the specified title, starting from the specified program */ -dvdnav_status_t dvdnav_program_play(dvdnav_t *this, int32_t title, int32_t pgcn, int32_t pgn); +dvdnav_status_t dvdnav_program_play(dvdnav_t *self, int32_t title, int32_t pgcn, int32_t pgn); /* * Stores in *times an array (that the application *must* free) of