refactoring
gst_sample_get_buffer wrapped automatically