NVIDIA video codec sdk

Hello, Im trying to execute h.264 decoding using nvidia video codec sdk. I have disabled opengl related calls since i dont want to display the result. I can successfully execute the code on windows platform. But in ubuntu im not able to execute the code after disabling the GL calls. The code is getting hanged in loadVideoSource call. Anything im doing wrong?