diff options
author | Johns <johns98@gmx.net> | 2012-02-23 23:33:00 +0100 |
---|---|---|
committer | Johns <johns98@gmx.net> | 2012-02-23 23:33:00 +0100 |
commit | 82f61de1171dc7bc2c021423c928545812ba2ddf (patch) | |
tree | d2b7de5e71bf19fa99bfad79633bd0ab7dc44d8e | |
parent | 67e571f02b4d333f39f22067019dc55f544bb887 (diff) | |
download | vdr-plugin-softhddevice-82f61de1171dc7bc2c021423c928545812ba2ddf.tar.gz vdr-plugin-softhddevice-82f61de1171dc7bc2c021423c928545812ba2ddf.tar.bz2 |
Include GIT version, when build from git.
-rw-r--r-- | softhddevice.cpp | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/softhddevice.cpp b/softhddevice.cpp index a63d02e..1c24f6f 100644 --- a/softhddevice.cpp +++ b/softhddevice.cpp @@ -43,7 +43,11 @@ extern "C" ////////////////////////////////////////////////////////////////////////////// -static const char *const VERSION = "0.4.9"; +static const char *const VERSION = "0.4.9" +#ifdef GIT_REV + "-GIT" GIT_REV +#endif + ; static const char *const DESCRIPTION = trNOOP("A software and GPU emulated HD device"); @@ -955,7 +959,7 @@ bool cSoftHdDevice::SetPlayMode(ePlayMode play_mode) break; } - return ::SetPlayMode(play_mode); + return::SetPlayMode(play_mode); } /** @@ -1076,8 +1080,8 @@ bool cSoftHdDevice::Flush(int timeout_ms) ** Sets the video display format to the given one (only useful if this ** device has an MPEG decoder). */ -void cSoftHdDevice:: SetVideoDisplayFormat(eVideoDisplayFormat - video_display_format) +void cSoftHdDevice:: +SetVideoDisplayFormat(eVideoDisplayFormat video_display_format) { static int last = -1; @@ -1306,6 +1310,11 @@ cPluginSoftHdDevice::~cPluginSoftHdDevice(void) ::SoftHdDeviceExit(); } +/** +** Return plugin version number. +** +** @returns version number as constant string. +*/ const char *cPluginSoftHdDevice::Version(void) { return VERSION; |