gstreamer appsrc: saving application-generated media to file