summaryrefslogtreecommitdiff
path: root/softhddev.c
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2012-07-02 17:05:36 +0200
committerJohns <johns98@gmx.net>2012-07-02 17:05:36 +0200
commit696bb8e934bc8bd9c73df4f954d74e926dbeeadb (patch)
tree35d340f22d74958fd6108efa9837ccf14db11ca6 /softhddev.c
parent3bb7782d404a09b66afd712bb562c6a3833bebf8 (diff)
downloadvdr-plugin-softhddevice-696bb8e934bc8bd9c73df4f954d74e926dbeeadb.tar.gz
vdr-plugin-softhddevice-696bb8e934bc8bd9c73df4f954d74e926dbeeadb.tar.bz2
Display frame statistics in plugin menu.
Diffstat (limited to 'softhddev.c')
-rw-r--r--softhddev.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/softhddev.c b/softhddev.c
index 57858ed..849835e 100644
--- a/softhddev.c
+++ b/softhddev.c
@@ -2689,3 +2689,22 @@ void Resume(void)
pthread_mutex_unlock(&SuspendLockMutex);
}
+
+/*
+** Get decoder statistics.
+**
+** @param[out] missed missed frames
+** @param[out] duped duped frames
+** @param[out] dropped dropped frames
+** @param[out] count number of decoded frames
+*/
+void GetStats(int *missed, int *duped, int *dropped, int *counter)
+{
+ *missed = 0;
+ *duped = 0;
+ *dropped = 0;
+ *counter = 0;
+ if (MyHwDecoder) {
+ VideoGetStats(MyHwDecoder, missed, duped, dropped, counter);
+ }
+}