long location = 0;
if (context != null && context.getLocation() != null) {
- location = ((TmfLocation<Long>) (context.getLocation())).getLocation();
+ location = ((TmfLocation<Long>) (context.getLocation())).getLocationData();
try {
stream.seek(location);