ref: 1726aef226fe5b6dcd7b61cd106d1ddf4bb432a0
parent: 85a8a51370eb0b8a4061fc601c705d43cc73b119
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Tue Sep 15 17:12:15 EDT 2020
h264: show decoder error
--- a/decoder_h264.c
+++ b/decoder_h264.c
@@ -78,11 +78,12 @@
case H264BSD_ERROR:
res = -1;
+ werrstr("decoding error");
break;
case H264BSD_PARAM_SET_ERROR:
res = -1;
- werrstr("H264BSD_PARAM_SET_ERROR");
+ werrstr("param set error");
break;
}
--- a/main.c
+++ b/main.c
@@ -248,7 +248,7 @@
}
}
- if(forced){
+ if(forced && saudio != nil){
Sclose(saudio);
chanclose(audiosync);
}