Several fixes for GStreamer support in OpenCV

- Accurate ASYC task handling for both GStreamer generations.
- Correct video duration request for videos for both GStreamer generations.
- More accurate pipeline destruction for both GStreamer generations.
- Correct color space conversion plugin for GStreamer 1.0.
`#undef FORMAT`?