When the input buffer is not native, its identity can be
different from the current stream. This change adds
support to hold identity of input stream.
Change-Id: I95563337482826b9f67b6ffbfd758766f5fb4290
Signed-off-by: Iliya Varadzhakov <ivarad@codeaurora.org>