Introduce getGStreamerVersionString function and use it in About screen
authorAthanasios Oikonomou <athoik@gmail.com>
Sun, 12 Oct 2014 17:51:45 +0000 (20:51 +0300)
committerlittlesat <littlesat99@yahoo.com>
Sun, 26 Oct 2014 11:52:02 +0000 (12:52 +0100)
Signed-off-by: littlesat <littlesat99@yahoo.com>

lib/python/Components/About.py
lib/python/Screens/About.py
lib/python/enigma_python.i
main/enigma.cpp

index 9df2a1f..082fff7 100644 (file)
@@ -26,6 +26,10 @@ def getEnigmaVersionString():
                enigma_version = enigma_version [:-12]
        return enigma_version
 
+def getGStreamerVersionString():
+       import enigma
+       return enigma.getGStreamerVersionString()
+
 def getKernelVersionString():
        try:
                return open("/proc/version","r").read().split(' ', 4)[2].split('-',2)[0]
index fa4755c..c74e20c 100644 (file)
@@ -24,6 +24,10 @@ class About(Screen):
                self["EnigmaVersion"] = StaticText(EnigmaVersion)
                AboutText += EnigmaVersion + "\n"
 
+               GStreamerVersion = "GStreamer: " + about.getGStreamerVersionString()
+               self["GStreamerVersion"] = StaticText(GStreamerVersion)
+               AboutText += GStreamerVersion + "\n"
+
                ImageVersion = _("Last upgrade: ") + about.getImageVersionString()
                self["ImageVersion"] = StaticText(ImageVersion)
                AboutText += ImageVersion + "\n"
@@ -190,4 +194,4 @@ class CommitInfo(Screen):
 
        def right(self):
                self.project = self.project != len(self.projects) - 1 and self.project + 1 or 0
-               self.updateCommitLogs()
\ No newline at end of file
+               self.updateCommitLogs()
index 20b0618..dd4b8c7 100644 (file)
@@ -417,6 +417,7 @@ extern int getPrevAsciiCode();
 extern void addFont(const char *filename, const char *alias, int scale_factor, int is_replacement, int renderflags = 0);
 extern const char *getEnigmaVersionString();
 extern const char *getBoxType();
+extern const char *getGStreamerVersionString();
 extern void dump_malloc_stats(void);
 %}
 
@@ -427,6 +428,7 @@ extern void quitMainloop(int exit_code);
 extern eApplication *getApplication();
 extern const char *getEnigmaVersionString();
 extern const char *getBoxType();
+extern const char *getGStreamerVersionString();
 extern void dump_malloc_stats(void);
 
 %include <lib/python/python_console.i>
index 14627f4..391f9d9 100644 (file)
@@ -321,6 +321,11 @@ const char *getBoxType()
        return BOXTYPE;
 }
 
+const char *getGStreamerVersionString()
+{
+       return gst_version_string();
+}
+
 #include <malloc.h>
 
 void dump_malloc_stats(void)