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.

Restore C++ compatibility by renaming the parameter to 'self' like in
the other functions.

-- 
Anssi Hannula
Index: libdvdnav/src/dvdnav/dvdnav.h
===================================================================
--- libdvdnav/src/dvdnav/dvdnav.h	(revision 1243)
+++ libdvdnav/src/dvdnav/dvdnav.h	(working copy)
@@ -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
_______________________________________________
DVDnav-discuss mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/dvdnav-discuss

Reply via email to