Page 1 of 1

DisableVideoOutput freeze.

PostPosted: Tue Jun 09, 2015 7:35 am
by Moro Alexandre
Hello Decklink developpers !

I'm confronted to a freeze problem when i stop to play out my stream.

I use decklink hd extreme+ to playout graphics with keying, it works well using 10.4 SDK and drivers, but :

My workflow :
1) Iterate to find my device, then the display mode.
2) EnableVideoOutput with display mode.
3) Create and link the SetScheduledFrameCompletionCallback.
4) CreateVideoFrame and QueryKeyer
5) Preroll FPS/3 frames.
6) StartScheduledPlayback

Now my frames and sent through the Callback.
But when i stop output i call :

1) StopScheduledPlayback(0, NULL, 0);
2) DisableVideoOutput();

But the DisableVideoOutput freeze but not always !!!

Do i miss something ?


Re: DisableVideoOutput freeze.

PostPosted: Tue Jun 16, 2015 4:31 am
by Nicholas Gill
Hi Moro,

Could you please describe the context in which DisableVideoOutput is called?

While disabling video output the user callbacks (e.g. IDeckLinkVideoOutputCallback::ScheduledFrameCompleted) may be called - it is not safe to call DisableVideoOutput from these callbacks.