diff gui/ui/render.c @ 36918:e0a0b0846c4e

Add new dynamic label variable $P. This is more convenient than using $p, $s and $e (which we leave for the sake of compatibility).
author ib
date Thu, 13 Mar 2014 16:49:14 +0000
parents d41fbe8a8797
children 40ad45360c8a
line wrap: on
line diff
--- a/gui/ui/render.c	Thu Mar 13 16:22:27 2014 +0000
+++ b/gui/ui/render.c	Thu Mar 13 16:49:14 2014 +0000
@@ -175,6 +175,22 @@
                     av_strlcat(trbuf, "e", sizeof(trbuf));
                 break;
 
+            case 'P':
+                switch (guiInfo.Playing) {
+                case GUI_STOP:
+                    av_strlcat(trbuf, "s", sizeof(trbuf));
+                    break;
+
+                case GUI_PLAY:
+                    av_strlcat(trbuf, "p", sizeof(trbuf));
+                    break;
+
+                case GUI_PAUSE:
+                    av_strlcat(trbuf, "e", sizeof(trbuf));
+                    break;
+                }
+                break;
+
             case 'a':
                 switch (guiInfo.AudioChannels) {
                 case 0: