msdkvpp: Fix renegotiation issues if upstream forces a resolution change
Submitted by Sreerenj Balachandran
If upstream decoder (for eg:), produce video frames of different resolution, current msdkvpp will fail to renegotiate.
Multiple changes and some rewriting(in the allocation logic) are required to implement this.
Similar changes in the decoder: https://bugzilla.gnome.org/show_bug.cgi?id=796566 could be a good reference.