Skip to content

Instantly share code, notes, and snippets.

@shiretu
Last active July 31, 2018 17:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shiretu/221193b76f5f1f26a08975042e3000c2 to your computer and use it in GitHub Desktop.
Save shiretu/221193b76f5f1f26a08975042e3000c2 to your computer and use it in GitHub Desktop.
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