Last active
July 31, 2018 17:39
-
-
Save shiretu/221193b76f5f1f26a08975042e3000c2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/samples/00_video_decode/video_decode_main.cpp b/samples/00_video_decode/video_decode_main.cpp | |
index 96fb05d..5ed0c53 100644 | |
--- a/samples/00_video_decode/video_decode_main.cpp | |
+++ b/samples/00_video_decode/video_decode_main.cpp | |
@@ -1314,6 +1314,9 @@ main(int argc, char *argv[]) | |
} | |
// Signal EOS to the decoder capture loop | |
+ fprintf(stderr,"**** Delay the EOS setting for 5 seconds\n"); | |
+ sleep(5); | |
+ fprintf(stderr,"**** Done delaying\n"); | |
ctx.got_eos = true; | |
#ifndef USE_NVBUF_TRANSFORM_API | |
if (ctx.conv) | |
@@ -1342,7 +1345,9 @@ main(int argc, char *argv[]) | |
cleanup: | |
if (ctx.dec_capture_loop) | |
{ | |
+ fprintf(stderr,"**** Try to join the capture loop\n"); | |
pthread_join(ctx.dec_capture_loop, NULL); | |
+ fprintf(stderr,"**** Capture loop joined\n"); | |
} | |
#ifndef USE_NVBUF_TRANSFORM_API | |
if (ctx.conv && ctx.conv->isInError()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment