Skip to content

Commit 2849433

Browse files
committed
fix: exit when the last of the MPEG stream has been decoded
1 parent 76a4819 commit 2849433

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/codecs/v4l2/v4l2_decoder.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ void V4L2Decoder::HandleEvent() {
4848
break;
4949
case V4L2_EVENT_EOS:
5050
DEBUG_PRINT("EOS!");
51+
exit(EXIT_FAILURE);
5152
break;
5253
}
5354
}

0 commit comments

Comments
 (0)