[DVDnav-discuss] r1247 - trunk/libdvdnav/src/dvdnav/dvdnav.h

rathann subversion at mplayerhq.hu
Sun Dec 9 22:39:37 CET 2012


Author: rathann
Date: Sun Dec  9 22:39:37 2012
New Revision: 1247

Log:
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/

Modified:
   trunk/libdvdnav/src/dvdnav/dvdnav.h

Modified: trunk/libdvdnav/src/dvdnav/dvdnav.h
==============================================================================
--- trunk/libdvdnav/src/dvdnav/dvdnav.h	Sun Dec  9 22:22:15 2012	(r1246)
+++ trunk/libdvdnav/src/dvdnav/dvdnav.h	Sun Dec  9 22:39:37 2012	(r1247)
@@ -281,7 +281,7 @@ dvdnav_status_t dvdnav_part_play(dvdnav_
 /*
  * 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


More information about the DVDnav-discuss mailing list