gst: new_sample: remove redundant sample? condition
gst: new_sample: remove redundant sample? condition

Move the declaration and assignment of 'buffer' into
the if (sample) block, where sample is not NULL.

Signed-off-by: Uri Lublin <0332784c07b6f27b46541214503bc0da50f0f291@redhat.com>
Acked-by: Pavel Grunt <fbda40b445316123f12a5a6bd7556918ea74f4bc@redhat.com>

flexVDI/spice-gtk,flexVDI/spice-gtk