From: PacketVideo CM Date: Wed, 23 Sep 2009 23:24:25 +0000 (-0700) Subject: RIO-7269: Addition of virtual destructor in the 'IDispatch' class, so that, the deriv... X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=e8c6dfac9f187be4634eba02389a132c824c15b7;p=android-x86%2Fexternal-opencore.git RIO-7269: Addition of virtual destructor in the 'IDispatch' class, so that, the derived extensions are properly deleted. --- diff --git a/android/dispatch.h b/android/dispatch.h index 2a16c34c..ae4ac034 100755 --- a/android/dispatch.h +++ b/android/dispatch.h @@ -26,7 +26,7 @@ public: * @return * Completion status */ - virtual status_t invoke(const Parcel& data, Parcel& reply, PlayerExtensionCommand* cmd)=0; + virtual status_t invoke(const Parcel& data, Parcel& reply, PlayerExtensionCommand* cmd)=0; /** * If any engine commands were scheduled by this extension, this function will be * called upon completion. @@ -39,9 +39,13 @@ public: * false= let playerdriver handle standard command completion * true = command was handled (e.g. FinishSyncCommand, commandFailed) and aCmd deleted */ - virtual bool commandCompleted(PlayerExtensionCommand* cmd, const PVCmdResponse &resp) { - return false; - } + virtual bool commandCompleted(PlayerExtensionCommand* cmd, const PVCmdResponse &resp) { + return false; + } +/** + * Destructor +*/ + virtual ~IDispatch() {} }; diff --git a/engines/2way/src/pv_2way_sdkinfo.h b/engines/2way/src/pv_2way_sdkinfo.h index 48ae02a5..1babcd19 100644 --- a/engines/2way/src/pv_2way_sdkinfo.h +++ b/engines/2way/src/pv_2way_sdkinfo.h @@ -21,7 +21,7 @@ // This header file is automatically generated at build-time // *** OFFICIAL RELEASE INFO -- Will not auto update -#define PV2WAY_ENGINE_SDKINFO_LABEL "962234" +#define PV2WAY_ENGINE_SDKINFO_LABEL "962385" #define PV2WAY_ENGINE_SDKINFO_DATE 0x20090914 #endif //PV_2WAY_SDKINFO_H_INCLUDED diff --git a/engines/author/src/pv_author_sdkinfo.h b/engines/author/src/pv_author_sdkinfo.h index d21aec4a..08323392 100644 --- a/engines/author/src/pv_author_sdkinfo.h +++ b/engines/author/src/pv_author_sdkinfo.h @@ -21,7 +21,7 @@ // This header file is automatically generated at build-time // *** OFFICIAL RELEASE INFO -- Will not auto update -#define PVAUTHOR_ENGINE_SDKINFO_LABEL "962234" +#define PVAUTHOR_ENGINE_SDKINFO_LABEL "962385" #define PVAUTHOR_ENGINE_SDKINFO_DATE 0x20090914 #endif //PV_AUTHOR_SDKINFO_H_INCLUDED diff --git a/engines/player/src/pv_player_sdkinfo.h b/engines/player/src/pv_player_sdkinfo.h index 671e1e70..f3e02f5a 100644 --- a/engines/player/src/pv_player_sdkinfo.h +++ b/engines/player/src/pv_player_sdkinfo.h @@ -21,7 +21,7 @@ // This header file is automatically generated at build-time // *** OFFICIAL RELEASE INFO -- Will not auto update -#define PVPLAYER_ENGINE_SDKINFO_LABEL "962234" +#define PVPLAYER_ENGINE_SDKINFO_LABEL "962385" #define PVPLAYER_ENGINE_SDKINFO_DATE 0x20090914 #endif //PV_PLAYER_SDKINFO_H_INCLUDED