fixed compilation issues with new Ptr
restored original behaviour or release functions for (Buffer and Texture)
removed detail:: prefix int video_reader

it conflicts with cv::detail
Merge pull request #1408 from jet47:new-ptr-fixes