gst: Remove redundant condition and unnecessary cast
gst: Remove redundant condition and unnecessary cast

No functional change.

AravisProject/aravis,AravisProject/aravis,AravisProject/aravis,AravisProject/aravis,AravisProject/aravis