when there is no caps. The caps remain valid as long as sample is valid. If you need to hold on to the caps for longer than that, take a ref to the caps with gst_caps_ref().
Sample.getCaps
gst.caps.Caps getCaps()Get the caps associated with sample
Returns
the caps of sample or null