Mercurial > libdvdnav.hg
changeset 420:d7720a050e67 src
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/
author | rathann |
---|---|
date | Sun, 09 Dec 2012 21:39:37 +0000 |
parents | 8c87207b73ac |
children | ff5f3e53459b |
files | dvdnav/dvdnav.h |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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