Start the video decoder before reading the first frame to give it time to warm up
This commit is contained in:
parent
058ad2df23
commit
bf978223d8
1 changed files with 4 additions and 4 deletions
|
|
@ -179,6 +179,10 @@ int startVideoStream(void* rendererContext, int drFlags) {
|
||||||
if (err != 0) {
|
if (err != 0) {
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// This must be called before the decoder thread starts submitting
|
||||||
|
// decode units
|
||||||
|
callbacks.start();
|
||||||
|
|
||||||
err = readFirstFrame();
|
err = readFirstFrame();
|
||||||
if (err != 0) {
|
if (err != 0) {
|
||||||
|
|
@ -190,10 +194,6 @@ int startVideoStream(void* rendererContext, int drFlags) {
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
//This must be called before the decoder thread starts submitting
|
|
||||||
// decode units
|
|
||||||
callbacks.start();
|
|
||||||
|
|
||||||
err = PltCreateThread(DecoderThreadProc, NULL, &decoderThread);
|
err = PltCreateThread(DecoderThreadProc, NULL, &decoderThread);
|
||||||
if (err != 0) {
|
if (err != 0) {
|
||||||
return err;
|
return err;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue