shithub: hj264

Download patch

ref: 70b1cf8ab9292b471f6414b17895f583bc61ccfc
parent: ebae65d8a472ede5e1a6e299c2a7d54bf95c319f
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Sat Jul 30 18:58:27 EDT 2022

give up on weird shit

--- a/hj264.c
+++ b/hj264.c
@@ -223,17 +223,6 @@
 	Bflush(&h->out);
 }
 
-static int
-done(void*, char*)
-{
-	Hj264 *h;
-
-	h = *procdata();
-	Bflush(&h->out);
-
-	return 1;
-}
-
 static void
 encthread(void *p)
 {
@@ -243,13 +232,10 @@
 	Hj264 *h;
 	int sz;
 
-	h = p;
-	prev = nil;
-
-	*procdata() = h;
 	threadsetname("hj264/encthread");
-	threadnotify(done, 1);
 
+	h = p;
+	prev = nil;
 	for(;;){
 		if(recv(h->frame, &img) < 0)
 			break;