Community
cancel
Showing results for 
Search instead for 
Did you mean: 
50 Views

vm_time_sleep wrong?

Hallo @ All

i had the problem, that my video output hangs some times, so i looked up why, and i found this in avsync.cpp line 831:
vm_time_sleep(IPP_MAX(0,IPP_MIN(1,(Ipp32s)((ft-st1)*1000))));
(i think this expession will always call vm_time_sleep(0<=1) :D, but mostly with 0, so the output freeze)

I replaced it with:
vm_time_sleep(IPP_MAX(0,IPP_MIN(DEF_TIME_TO_SLEEP<<1,(Ipp32s)((ft-st1)*1000))));


and now the movements are very softly, also in H264 and everything works fine. Also with this solution you can run (parallel) the windows Media player
without some freezings.

Best Regards Detlef




0 Kudos
1 Reply
Chao_Y_Intel
Employee
50 Views

Detlef,

I forward to the code ower to have a check. Thanks a lot for sharing it.

Regards,
Chao

Reply