Fix a race between the start callback and the first frame's data
This commit is contained in:
parent
5c70cf9b3a
commit
18405f576d
1 changed files with 4 additions and 2 deletions
|
|
@ -179,12 +179,14 @@ int startVideoStream(void* rendererContext, int drFlags) {
|
|||
return err;
|
||||
}
|
||||
|
||||
// This must be called before the decoder thread starts submitting
|
||||
// decode units
|
||||
callbacks.start();
|
||||
|
||||
err = PltCreateThread(DecoderThreadProc, NULL, &decoderThread);
|
||||
if (err != 0) {
|
||||
return err;
|
||||
}
|
||||
|
||||
callbacks.start();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue