I'm not objecting to the two functions. I'm objecting to two function calls in dvdplayer each time this is use. You can add a static utility function inside dvdplayer.cpp that does those two function calls.