shithub: treason

Download patch

ref: 388fe8b594357a85c94803d1c73b233672c1ecc0
parent: 970595a58461c94175a7ee6d85a2892477508f38
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Sun Dec 13 17:56:52 EST 2020

fix info display

--- a/main.c
+++ b/main.c
@@ -232,7 +232,14 @@
 			res = alt(a);
 			switch(res){
 			case Cframe:
-				snprint(info, sizeof(info), "%zdms %dx%d %s %s          ", delay/1000000ULL, frame->w, frame->h, d->info, d->s->info);
+				snprint(
+					info, sizeof(info),
+					"delay=%zdms %dx%d %s %s",
+					delay/1000000ULL,
+					frame->w, frame->h,
+					d->info,
+					d->s->info
+				);
 				drawframe(frame);
 				break;
 
--- a/stream.c
+++ b/stream.c
@@ -27,6 +27,8 @@
 			f = utfrrune(filename, '/');
 			if(f == nil)
 				f = filename;
+			else
+				f++;
 			snprint(s->info, sizeof(s->info), "%s [%s]", ops[i].name, f);
 			return s;
 		}