gstreamer: sample stepping

This is a ported code from GStreamer tests/examples/stepping/framestep1.c.