ogg: propagate return values and return more meaningful error values