Add extra logging and null checks Also add an option to wrap A/V memory in GstBuffer without copy. Change-Id: Ic8933d267ca954a397698400dbfad62dae96a845